X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http.h;h=0fbbb55172a76353b650536c6c04c0dc0dfde6ea;hb=890a33b0f67eceab9885db7a2a9f46de0ea961f5;hp=66a7a9a33f5f05e6b2a1446d4ff5f525a95e9dfa;hpb=f3ce3047c2a861a4ee3fcd7e74074cbd0ebc3714;p=m6w6%2Fext-http diff --git a/php_http.h b/php_http.h index 66a7a9a..0fbbb55 100644 --- a/php_http.h +++ b/php_http.h @@ -24,8 +24,10 @@ #ifdef HTTP_WANT_NETDB # ifdef PHP_WIN32 +# define HTTP_HAVE_NETDB # include # elif defined(HAVE_NETDB_H) +# define HTTP_HAVE_NETDB # include # endif #endif @@ -93,7 +95,7 @@ ZEND_BEGIN_MODULE_GLOBALS(http) struct _http_globals_request { struct _http_globals_request_methods { char *allowed; - struct { + struct _http_globals_request_methods_custom { int count; void *entries; } custom; @@ -105,6 +107,7 @@ ZEND_BEGIN_MODULE_GLOBALS(http) #endif zend_bool force_exit; + zend_bool read_post_data; ZEND_END_MODULE_GLOBALS(http) @@ -145,6 +148,7 @@ PHP_FUNCTION(http_parse_headers); PHP_FUNCTION(http_parse_cookie); PHP_FUNCTION(http_get_request_headers); PHP_FUNCTION(http_get_request_body); +PHP_FUNCTION(http_get_request_body_stream); PHP_FUNCTION(http_match_request_header); #ifdef HTTP_HAVE_CURL PHP_FUNCTION(http_get);