SOURCES: php-bug-35009.patch (NEW) - fix from bug #35009: ZTS: Per...

glen glen at pld-linux.org
Tue Nov 8 19:33:45 CET 2005


Author: glen                         Date: Tue Nov  8 18:33:45 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix from bug #35009: ZTS: Persistent resource destruct crashes when extension is compiled as shared

---- Files affected:
SOURCES:
   php-bug-35009.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/php-bug-35009.patch
diff -u /dev/null SOURCES/php-bug-35009.patch:1.1
--- /dev/null	Tue Nov  8 19:33:45 2005
+++ SOURCES/php-bug-35009.patch	Tue Nov  8 19:33:40 2005
@@ -0,0 +1,35 @@
+
+===================================================================
+RCS file: /repository/ZendEngine2/zend.c,v
+retrieving revision 1.287.2.12
+retrieving revision 1.287.2.14
+diff -p --unified=3 -r1.287.2.12 -r1.287.2.14
+--- ./Zend/zend.c	2005/07/22 07:33:27	1.287.2.12
++++ ./Zend/zend.c	2005/11/07 12:25:21	1.287.2.14
+@@ -17,7 +17,7 @@
+    +----------------------------------------------------------------------+
+ */
+
+-/* $Id$ */
++/* $Id$ */
+
+ #include "zend.h"
+ #include "zend_extensions.h"
+@@ -693,9 +693,7 @@ void zend_shutdown(TSRMLS_D)
+ #ifdef ZEND_WIN32
+ 	zend_shutdown_timeout_thread();
+ #endif
+-#ifndef ZTS
+ 	zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
+-#endif
+ 	zend_hash_graceful_reverse_destroy(&module_registry);
+
+ 	zend_hash_destroy(GLOBAL_FUNCTION_TABLE);
+@@ -711,7 +709,6 @@ void zend_shutdown(TSRMLS_D)
+ 	free(GLOBAL_FUNCTION_TABLE);
+ 	free(GLOBAL_CLASS_TABLE);
+ #ifdef ZTS
+-	zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
+ 	zend_hash_destroy(GLOBAL_CONSTANTS_TABLE);
+ 	free(GLOBAL_CONSTANTS_TABLE);
+ 	GLOBAL_FUNCTION_TABLE = NULL;
================================================================



More information about the pld-cvs-commit mailing list