X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=9aa6878561b580a09a9111250246b8d363f52d22;hp=991e84e8fc031ff4c30fb487cf0f8bee8f051739;hb=80fd11fc5b72c8fadea499aec6e617d415334c2d;hpb=4a881fb37338bfeacd40c42a97f334c9faed299a diff --git a/http.c b/http.c index 991e84e..9aa6878 100644 --- a/http.c +++ b/http.c @@ -35,13 +35,16 @@ #include "php_http.h" #include "php_http_std_defs.h" - #include "php_http_send_api.h" -#include "php_http_util_object.h" -#include "php_http_message_object.h" -#include "php_http_response_object.h" -#include "php_http_request_object.h" +#ifdef ZEND_ENGINE_2 +# include "php_http_util_object.h" +# include "php_http_message_object.h" +# include "php_http_response_object.h" +# ifdef HTTP_HAVE_CURL +# include "php_http_request_object.h" +# endif +#endif #include "phpstr/phpstr.h" @@ -280,6 +283,8 @@ PHP_RSHUTDOWN_FUNCTION(http) phpstr_dtor(&HTTP_G(curlbuf)); #endif + zval_dtor(&HTTP_G(message_object_tmp_property)); + return SUCCESS; } /* }}} */