X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=888a1cf0c487533a6b25bafa43c0fdee6aa247c5;hp=859e21c0c522794a0b144db21f1fd8b0b23f66c7;hb=0e41acb9661b95484c212e349f83e34eb3fe84a2;hpb=8ae4de63a85ad21442948aa35f45e28368c91929 diff --git a/http.c b/http.c index 859e21c..888a1cf 100644 --- a/http.c +++ b/http.c @@ -429,6 +429,7 @@ PHP_MINFO_FUNCTION(http) php_info_print_table_colspan_header(2, "Request Methods"); { unsigned i; + HashPosition pos; zval **custom_method; phpstr *known_request_methods = phpstr_new(); phpstr *custom_request_methods = phpstr_new(); @@ -437,7 +438,7 @@ PHP_MINFO_FUNCTION(http) phpstr_appendl(known_request_methods, http_request_method_name(i)); phpstr_appends(known_request_methods, ", "); } - FOREACH_HASH_VAL(&HTTP_G(request).methods.custom, custom_method) { + FOREACH_HASH_VAL(pos, &HTTP_G(request).methods.custom, custom_method) { phpstr_append(custom_request_methods, Z_STRVAL_PP(custom_method), Z_STRLEN_PP(custom_method)); phpstr_appends(custom_request_methods, ", "); }