X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_method_api.c;h=873d5b1df14341aa74432b2399bb688c04d74751;hp=be19f492ce9832609e4028e9c83a8724d2283862;hb=86508dbae5f9296485820e654f07af59be55003f;hpb=266dd631dcb4e0652522ad4884ee8a40b88532ec diff --git a/http_request_method_api.c b/http_request_method_api.c index be19f49..873d5b1 100644 --- a/http_request_method_api.c +++ b/http_request_method_api.c @@ -148,8 +148,9 @@ PHP_HTTP_API ulong _http_request_method_exists(zend_bool by_name, ulong id, cons zval **data; char *key; ulong idx; + HashPosition pos; - FOREACH_HASH_KEYVAL(&HTTP_G(request).methods.custom, key, idx, data) { + FOREACH_HASH_KEYVAL(pos, &HTTP_G(request).methods.custom, key, idx, data) { if (!strcmp(name, Z_STRVAL_PP(data))) { return idx + HTTP_MAX_REQUEST_METHOD; }