X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=php_http.h;h=0fbbb55172a76353b650536c6c04c0dc0dfde6ea;hb=ab7ffb9d04418a394dec4604f88a3aa5d94b9a08;hp=793b21334371e0f1846deb92e482019f063036a5;hpb=e81100d361a8dc48fa491d973e936a19ea428853;p=m6w6%2Fext-http diff --git a/php_http.h b/php_http.h index 793b213..0fbbb55 100644 --- a/php_http.h +++ b/php_http.h @@ -15,7 +15,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_EXT_HTTP_VERSION "0.21.0" +#define PHP_EXT_HTTP_VERSION "0.22.0-dev" #include "php.h" #include "php_http_std_defs.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);