]> 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:20 +0000 (12:24 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 7 Nov 2005 12:24:20 +0000 (12:24 +0000)
Zend/zend.c

index 99c4bfde2d7fa1376bfc32a63e5882df71f4aa2e..7d7abff75ebabf1a667d32b9843295c589c805a3 100644 (file)
@@ -1341,6 +1341,9 @@ void zend_shutdown(TSRMLS_D)
 #ifdef ZEND_WIN32
        zend_shutdown_timeout_thread();
 #endif
+       if (global_persistent_list) {
+               zend_destroy_rsrc_list(global_persistent_list TSRMLS_CC);
+       }
        zend_hash_graceful_reverse_destroy(&module_registry);
 
        zend_hash_destroy(global_function_table);
@@ -1377,9 +1380,6 @@ void zend_shutdown(TSRMLS_D)
        if (global_u_class_table) {
                free(global_u_class_table);
        }
-       if (global_persistent_list) {
-               zend_destroy_rsrc_list(global_persistent_list TSRMLS_CC);
-       }
 #ifdef ZTS
        global_function_table = NULL;
        global_u_function_table = NULL;