X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_method_api.c;h=28365f73edc080d473b32b78694dd861ab97692e;hp=57636d088b2b065e7e050bc3015a6859803ea2cf;hb=df3c115036f68f27e0c89efeab016c51de008037;hpb=36fa8b05be7aaf8e7f9e503c3e82733022500c03 diff --git a/http_request_method_api.c b/http_request_method_api.c index 57636d0..28365f7 100644 --- a/http_request_method_api.c +++ b/http_request_method_api.c @@ -167,7 +167,7 @@ PHP_HTTP_API unsigned long _http_request_method_register(const char *method_name } method[method_len] = '\0'; - Z_ARRVAL(array) = &HTTP_G(request).methods.custom; + INIT_ZARR(array, &HTTP_G(request).methods.custom); add_next_index_stringl(&array, method, method_len, 0); method_len = spprintf(&http_method, 0, "HTTP_METH_%s", method);