X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http.c;h=61ee3e7f7b951e877db2b1ec50e7d25aed8b9145;hb=b107d451def2ff6dcdaad2cfc23bb0344b4a3baf;hp=990c008873ec6b7596dac373ab9c3abc35b5dbf7;hpb=a4b593d03ef14d9bc422cbe6ce471a7b5b8abe5d;p=m6w6%2Fext-http diff --git a/http.c b/http.c index 990c008..61ee3e7 100644 --- a/http.c +++ b/http.c @@ -222,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; } /* }}} */ @@ -258,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; }