-
- phpstr_append(known_request_methods, PHPSTR_VAL(custom_request_methods), PHPSTR_LEN(custom_request_methods));
- phpstr_fix(known_request_methods);
- phpstr_fix(custom_request_methods);
-
- php_info_print_table_row(2, "Known", PHPSTR_VAL(known_request_methods));
- php_info_print_table_row(2, "Custom",
- PHPSTR_LEN(custom_request_methods) ? PHPSTR_VAL(custom_request_methods) : "none registered");
- php_info_print_table_row(2, "Allowed", strlen(HTTP_G->request.methods.allowed) ? HTTP_G->request.methods.allowed : "(ANY)");
-
- phpstr_free(&known_request_methods);
- phpstr_free(&custom_request_methods);
+ phpstr_fix(methods);
+ php_info_print_table_row(2, "Registered", PHPSTR_VAL(methods));
+ php_info_print_table_row(2, "Allowed", *HTTP_G->request.methods.allowed ? HTTP_G->request.methods.allowed : "(ANY)");
+ phpstr_free(&methods);