zval **data;
zend_hash_init(&methods, 0, NULL, ZVAL_PTR_DTOR, 0);
zval **data;
zend_hash_init(&methods, 0, NULL, ZVAL_PTR_DTOR, 0);
FOREACH_HASH_VAL(pos, &methods, data) {
if (Z_TYPE_PP(data) == IS_STRING) {
http_request_method_register(Z_STRVAL_PP(data), Z_STRLEN_PP(data));
FOREACH_HASH_VAL(pos, &methods, data) {
if (Z_TYPE_PP(data) == IS_STRING) {
http_request_method_register(Z_STRVAL_PP(data), Z_STRLEN_PP(data));
if ( (HTTP_CUSTOM_REQUEST_METHOD(method) < 0) ||
(HTTP_CUSTOM_REQUEST_METHOD(method) > HTTP_G->request.methods.custom.count) ||
(!ptr[HTTP_CUSTOM_REQUEST_METHOD(method)])) {
if ( (HTTP_CUSTOM_REQUEST_METHOD(method) < 0) ||
(HTTP_CUSTOM_REQUEST_METHOD(method) > HTTP_G->request.methods.custom.count) ||
(!ptr[HTTP_CUSTOM_REQUEST_METHOD(method)])) {
- http_error_ex(HE_NOTICE, HTTP_E_REQUEST_METHOD, "Custom request method with id %lu does not exist", method);
+ http_error_ex(HE_NOTICE, HTTP_E_REQUEST_METHOD, "Custom request method with id %d does not exist", method);