X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http.c;h=2ecaa58edb9e6fa1724066aaae02506c50d8f37a;hb=eaa8a594c886a2d7a586ce324e21fc1b5de9da78;hp=dfac09e70e166f66b6274947895d4c4ddd0e86a6;hpb=f0b91eef34357ee6146faa2a2f88d4fac7c0d66c;p=m6w6%2Fext-http diff --git a/http.c b/http.c index dfac09e..2ecaa58 100644 --- a/http.c +++ b/http.c @@ -219,6 +219,8 @@ PHP_MINIT_FUNCTION(http) http_exception_object_init(); #endif /* 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); return SUCCESS; } /* }}} */ @@ -226,6 +228,7 @@ PHP_MINIT_FUNCTION(http) /* {{{ PHP_MSHUTDOWN_FUNCTION */ PHP_MSHUTDOWN_FUNCTION(http) { + zend_hash_destroy(&http_response_statics); UNREGISTER_INI_ENTRIES(); #ifdef HTTP_HAVE_CURL curl_global_cleanup(); @@ -244,6 +247,7 @@ PHP_RINIT_FUNCTION(http) } http_globals_init(HTTP_GLOBALS); + zend_init_static_properties(http_response_object_ce, &http_response_statics TSRMLS_CC); return SUCCESS; } /* }}} */ @@ -251,6 +255,7 @@ PHP_RINIT_FUNCTION(http) /* {{{ PHP_RSHUTDOWN_FUNCTION */ PHP_RSHUTDOWN_FUNCTION(http) { + zend_clean_static_properties(http_response_object_ce TSRMLS_CC); http_globals_free(HTTP_GLOBALS); return SUCCESS; }