X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=2313413f30af7761cd216f34bbd45718c8f8df20;hp=1a848b299486c555ae51aa70d5d1fddceaaab9ec;hb=4bf1b4570329514fa00dc68c6e02f581c3792d73;hpb=03f11ce599fa5a89148d588caf6ccec7f939e9d4 diff --git a/php_http_api.h b/php_http_api.h index 1a848b2..2313413 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -49,9 +49,7 @@ # define PHP_HTTP_HAVE_HASH #endif -#if (defined(HAVE_JSON) || defined(PHP_HTTP_HAVE_EXT_JSON)) && (PHP_HTTP_SHARED_DEPS || !defined(COMPILE_DL_JSON)) -# define PHP_HTTP_HAVE_JSON -#endif +#include #ifdef PHP_WIN32 # define CURL_STATICLIB @@ -76,7 +74,6 @@ #include "php_http.h" #include "php_http_buffer.h" -#include "php_http_strlist.h" #include "php_http_misc.h" #include "php_http_options.h" @@ -109,6 +106,13 @@ ZEND_BEGIN_MODULE_GLOBALS(php_http) struct php_http_env_globals env; +#ifdef PHP_HTTP_HAVE_CLIENT + struct { +#ifdef PHP_HTTP_HAVE_CURL + struct php_http_client_curl_globals curl; +#endif + } client; +#endif ZEND_END_MODULE_GLOBALS(php_http) ZEND_EXTERN_MODULE_GLOBALS(php_http);