X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=d766e42cf32f667588e5a0cd5d9368881e71f6dd;hp=f5740452c8102e0a2dd27551faed475310152028;hb=2214902cf967c3aaf8e8493295f1ac43831ed015;hpb=e434da0fad7db62d86c236c68b22150165f2647a diff --git a/http.c b/http.c index f574045..d766e42 100644 --- a/http.c +++ b/http.c @@ -68,9 +68,19 @@ ZEND_BEGIN_ARG_INFO(http_request_info_ref_4, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(1) ZEND_END_ARG_INFO(); + +static +ZEND_BEGIN_ARG_INFO(http_request_info_ref_5, 0) + ZEND_ARG_PASS_INFO(0) + ZEND_ARG_PASS_INFO(0) + ZEND_ARG_PASS_INFO(0) + ZEND_ARG_PASS_INFO(0) + ZEND_ARG_PASS_INFO(1) +ZEND_END_ARG_INFO(); #else static unsigned char http_request_info_ref_3[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE}; static unsigned char http_request_info_ref_4[] = {4, BYREF_NONE, BYREF_NONE, BYREF_NONE, BYREF_FORCE}; +static unsigned char http_request_info_ref_5[] = {5, BYREF_NONE, BYREF_NONE, BYREF_NONE, BYREF_NONE, BYREF_FORCE}; #endif /* ZEND_ENGINE_2 */ #endif /* HTTP_HAVE_CURL */ @@ -107,7 +117,7 @@ function_entry http_functions[] = { PHP_FE(http_get, http_request_info_ref_3) PHP_FE(http_head, http_request_info_ref_3) PHP_FE(http_post_data, http_request_info_ref_4) - PHP_FE(http_post_array, http_request_info_ref_4) + PHP_FE(http_post_fields, http_request_info_ref_5) #endif PHP_FE(http_auth_basic, NULL) PHP_FE(http_auth_basic_cb, NULL) @@ -194,7 +204,7 @@ static inline void _http_globals_dtor(TSRMLS_D) static inline void _http_check_allowed_methods(char *methods, int length TSRMLS_DC) { if (length && SG(request_info).request_method) { - if (SUCCESS != http_check_method(SG(request_info).request_method, methods)) { + if (SUCCESS != http_check_method_ex(SG(request_info).request_method, methods)) { char *header = emalloc(length + sizeof("Allow: ")); sprintf(header, "Allow: %s", methods); http_exit(405, header);