cvs: ZendEngine2 / zend.c
| From: | Sebastian Bergmann | Date: | Sat, 19 Apr 2003 09:04:16 +0000 |
| Subject: | cvs: ZendEngine2 / zend.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1165@lists.php.net to get a copy of this message | ||
sebastian Sat Apr 19 05:04:16 2003 EDT
Modified files:
/ZendEngine2 zend.c
Log:
Corrected patch by Marcus Börger <helly@php.net>.
Index: ZendEngine2/zend.c
diff -u ZendEngine2/zend.c:1.224 ZendEngine2/zend.c:1.225
--- ZendEngine2/zend.c:1.224 Fri Apr 18 14:40:53 2003
+++ ZendEngine2/zend.c Sat Apr 19 05:04:15 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend.c,v 1.224 2003/04/18 18:40:53 sterling Exp $ */
+/* $Id: zend.c,v 1.225 2003/04/19 09:04:15 sebastian Exp $ */
#include "zend.h"
#include "zend_extensions.h"
@@ -382,10 +382,12 @@
zend_hash_add(GLOBAL_CLASS_TABLE, "stdclass", sizeof("stdclass"),
&zend_standard_class_def, sizeof(zend_class_entry *), NULL);
}
+#ifdef ZTS
static void unregister_standard_class()
{
destroy_zend_class(&zend_standard_class_def);
}
+#endif
static void zend_set_default_compile_time_values(TSRMLS_D)
{
@@ -474,10 +476,12 @@
}
+#ifdef ZTS
static void alloc_globals_dtor(zend_alloc_globals *alloc_globals_p TSRMLS_DC)
{
shutdown_memory_manager(0, 1 TSRMLS_CC);
}
+#endif
#ifdef __FreeBSD__
@@ -672,8 +676,8 @@
zend_shutdown_constants(TSRMLS_C);
#ifdef ZTS
zend_hash_destroy(GLOBAL_CONSTANTS_TABLE);
-#endif
unregister_standard_class();
+#endif
}