]> granicus.if.org Git - php/commitdiff
Fixed bug #35009 (ZTS: Persistent resource destruct crashes when extension is compile...
authorDmitry Stogov <dmitry@php.net>
Mon, 7 Nov 2005 12:24:55 +0000 (12:24 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 7 Nov 2005 12:24:55 +0000 (12:24 +0000)
NEWS
Zend/zend.c

diff --git a/NEWS b/NEWS
index 447c2dc355ff28ca9f7346e67b9f6c68960e4657..8bdebda05dc66ab6b9d9ef6ba6ad675ee9355a35 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,8 @@ PHP                                                                        NEWS
 - Fixed bug #35017 (Exception thrown in error handler may cause unexpected
   behavior). (Dmitry)
 - Fixed bug #35014 (array_product() always returns 0). (Ilia)
+- Fixed bug #35009 (ZTS: Persistent resource destruct crashes when extension
+  is compiled as shared). (Dmitry)
 - Fixed bug #34851 (SO_RECVTIMEO and SO_SNDTIMEO socket options expect integer
   parameter on Windows). (Mike)
 - Fixed bug #31971 (ftp_login fails on some SSL servers). 
index 3465e55ab69f1b90d6ab429c5dd1d73759e69352..2c790bf1b895f6ce6173ef88a76508ac0e602ec7 100644 (file)
@@ -702,6 +702,7 @@ void zend_shutdown(TSRMLS_D)
 #ifdef ZEND_WIN32
        zend_shutdown_timeout_thread();
 #endif
+       zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
        zend_hash_graceful_reverse_destroy(&module_registry);
 
        zend_hash_destroy(GLOBAL_FUNCTION_TABLE);
@@ -719,7 +720,6 @@ void zend_shutdown(TSRMLS_D)
        zend_hash_destroy(GLOBAL_CONSTANTS_TABLE);
        free(GLOBAL_CONSTANTS_TABLE);
 
-       zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
 #ifdef ZTS
        GLOBAL_FUNCTION_TABLE = NULL;
        GLOBAL_CLASS_TABLE = NULL;