X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http.h;h=4aa2679dd2ccb5a7b76574c7422f0ba43085dd7c;hb=bf86dcdcd68677a8c4b7c8193388c529a55a3503;hp=7d20048083321bfab807c6938b929f7ee45d9b79;hpb=4fcbd8e8ae31611c5197ff2369673b5939fc2b80;p=m6w6%2Fext-http diff --git a/php_http.h b/php_http.h index 7d20048..4aa2679 100644 --- a/php_http.h +++ b/php_http.h @@ -15,12 +15,14 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_EXT_HTTP_VERSION "0.22.0-dev" +#define PHP_EXT_HTTP_VERSION "0.23.0dev" #ifdef HAVE_CONFIG_H # include "config.h" #else -# include "php_config.h" +# ifndef PHP_WIN32 +# include "php_config.h" +# endif #endif #include "php.h" @@ -45,6 +47,9 @@ # elif defined(HAVE_NETDB_H) # define HTTP_HAVE_NETDB # include +# ifdef HAVE_UNISTD_H +# include +# endif # endif #endif @@ -145,6 +150,7 @@ ZEND_EXTERN_MODULE_GLOBALS(http); PHP_FUNCTION(http_test); PHP_FUNCTION(http_date); PHP_FUNCTION(http_build_url); +PHP_FUNCTION(http_build_str); PHP_FUNCTION(http_negotiate_language); PHP_FUNCTION(http_negotiate_charset); PHP_FUNCTION(http_negotiate_content_type); @@ -181,9 +187,6 @@ PHP_FUNCTION(http_request_method_register); PHP_FUNCTION(http_request_method_unregister); PHP_FUNCTION(http_request_method_exists); PHP_FUNCTION(http_request_method_name); -#ifndef ZEND_ENGINE_2 -PHP_FUNCTION(http_build_query); -#endif /* ZEND_ENGINE_2 */ PHP_FUNCTION(ob_etaghandler); #ifdef HTTP_HAVE_ZLIB PHP_FUNCTION(http_deflate);