X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.h;h=447a09b1fa1c7f37e38498fdc8e2fcef8891dc93;hp=3a46a7216d9c112a15f3fa30bebbbdf4d87d9b69;hb=a12e8ddfaa5a94e76261f165b0c0299c87b886b1;hpb=a19a05825d04d634834f7898ec1a5247fdd6095c diff --git a/php_http.h b/php_http.h index 3a46a72..447a09b 100644 --- a/php_http.h +++ b/php_http.h @@ -18,7 +18,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_EXT_HTTP_VERSION "0.6.0-dev" +#define PHP_EXT_HTTP_VERSION "0.6.0" /* make compile on Win32 */ #include "php_streams.h" @@ -34,9 +34,7 @@ extern zend_module_entry http_module_entry; # define HTTP_G(v) (http_globals.v) #endif -#ifndef ZEND_ENGINE_2 -# include "php_http_build_query.h" -#else +#ifdef ZEND_ENGINE_2 typedef struct { zend_object zo; @@ -170,7 +168,9 @@ PHP_FUNCTION(http_post_array); #endif PHP_FUNCTION(http_auth_basic); PHP_FUNCTION(http_auth_basic_cb); - +#ifndef ZEND_ENGINE_2 +PHP_FUNCTION(http_build_query); +#endif PHP_FUNCTION(ob_httpetaghandler); PHP_MINIT_FUNCTION(http); @@ -194,6 +194,7 @@ ZEND_BEGIN_MODULE_GLOBALS(http) size_t free; size_t size; } curlbuf; + zend_llist to_free; #endif ZEND_END_MODULE_GLOBALS(http)