X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=61ee3e7f7b951e877db2b1ec50e7d25aed8b9145;hp=444341e634a03e3e10480a302cd89aa813606a7f;hb=3b56e96a9ebe6744c623879754ad24bea2f4773b;hpb=0d925a2820b9d75b8e32c451fd400863e51e22fe diff --git a/http.c b/http.c index 444341e..61ee3e7 100644 --- a/http.c +++ b/http.c @@ -44,6 +44,7 @@ # include "php_http_exception_object.h" #endif +#include "missing.h" #include "phpstr/phpstr.h" #ifdef HTTP_HAVE_CURL @@ -221,8 +222,10 @@ PHP_MINIT_FUNCTION(http) http_exception_object_init(); #endif /* ZEND_ENGINE_2 */ +#ifdef ZEND_ENGINE_2 zend_hash_init_ex(&http_response_statics, 0, NULL, ZVAL_INTERNAL_PTR_DTOR, 1, 0); zend_fix_static_properties(http_response_object_ce, &http_response_statics TSRMLS_CC); +#endif return SUCCESS; } /* }}} */ @@ -257,7 +260,9 @@ PHP_RINIT_FUNCTION(http) /* {{{ PHP_RSHUTDOWN_FUNCTION */ PHP_RSHUTDOWN_FUNCTION(http) { +#ifdef ZEND_ENGINE_2 zend_clean_static_properties(http_response_object_ce TSRMLS_CC); +#endif http_globals_free(HTTP_GLOBALS); return SUCCESS; }