php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch php-segv for Reproducible crash Bug #65463Patch version 2013-08-17 05:46 UTC Return to Bug #65463 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: keyur@php.netAuthor: Keyur Govande <keyur@php.net> Date: Fri Aug 16 23:59:29 2013 +0000 Fix order of destruction diff --git a/Zend/zend.c b/Zend/zend.c index fc443d9..6e8aca7 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -817,7 +817,6 @@ void zend_shutdown(TSRMLS_D) /* {{{ */ zend_shutdown_timeout_thread(); #endif zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC); - zend_destroy_modules(); zend_hash_destroy(GLOBAL_FUNCTION_TABLE); zend_hash_destroy(GLOBAL_CLASS_TABLE); @@ -825,6 +824,7 @@ void zend_shutdown(TSRMLS_D) /* {{{ */ zend_hash_destroy(GLOBAL_AUTO_GLOBALS_TABLE); free(GLOBAL_AUTO_GLOBALS_TABLE); + zend_destroy_modules(); zend_shutdown_extensions(TSRMLS_C); free(zend_version_info); |
Copyright © 2001-2025 The PHP Group All rights reserved. |
Last updated: Fri Jan 31 02:01:27 2025 UTC |