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=bb1f32fd5d06b9b9ace6517c177b0fe58c9ff57c;hpb=44d0c1d32c01476ccb5edefcf4d5cdaa46b8e5e6 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);