X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=88125ae8e2aada3a21b6a1da0fab48bf2481abe0;hp=5a0b05897ca2783cc008ec056a543a4eae74b620;hb=7ea5445a6250f29f09d6b97db124cacf457f23c5;hpb=d22651c805eca6f0d508c6d5a47e8daac36841fe diff --git a/http.c b/http.c index 5a0b058..88125ae 100644 --- a/http.c +++ b/http.c @@ -335,6 +335,9 @@ PHP_RINIT_FUNCTION(http) if ( (SUCCESS != PHP_RINIT_CALL(http_request_method)) #ifdef HTTP_HAVE_ZLIB || (SUCCESS != PHP_RINIT_CALL(http_encoding)) +#endif +#if defined(ZEND_ENGINE_2) && defined(HTTP_HAVE_CURL) + || (SUCCESS != PHP_RINIT_CALL(http_request_datashare)) #endif ) { return FAILURE; @@ -353,7 +356,10 @@ PHP_RSHUTDOWN_FUNCTION(http) #ifdef HTTP_HAVE_ZLIB || (SUCCESS != PHP_RSHUTDOWN_CALL(http_encoding)) #endif - ) { +#if defined(ZEND_ENGINE_2) && defined(HTTP_HAVE_CURL) + || (SUCCESS != PHP_RSHUTDOWN_CALL(http_request_datashare)) +#endif + ) { status = FAILURE; }