- initialize local zvals used as HashTable containers
[m6w6/ext-http] / http_request_method_api.c
index 57636d088b2b065e7e050bc3015a6859803ea2cf..28365f73edc080d473b32b78694dd861ab97692e 100644 (file)
@@ -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);