cvs: Zend(PHP_4_2_0) / zend.c zend.h
| From: | Zeev Suraski | Date: | Tue, 17 Sep 2002 10:56:03 +0000 |
| Subject: | cvs: Zend(PHP_4_2_0) / zend.c zend.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-431@lists.php.net to get a copy of this message | ||
zeev Tue Sep 17 06:56:03 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/Zend zend.c zend.h
Log:
MFH
Index: Zend/zend.c
diff -u Zend/zend.c:1.145.2.2 Zend/zend.c:1.145.2.3
--- Zend/zend.c:1.145.2.2 Wed Aug 28 05:51:29 2002
+++ Zend/zend.c Tue Sep 17 06:56:03 2002
@@ -480,6 +480,21 @@
}
+#ifdef ZTS
+/* Unlink the global (r/o) copies of the class, function and constant tables,
+ * and use a fresh r/w copy for the startup thread
+ */
+void zend_post_startup(TSRMLS_D)
+{
+ zend_compiler_globals *compiler_globals = ts_resource(compiler_globals_id);
+
+ compiler_globals_ctor(compiler_globals, tsrm_ls);
+ zend_startup_constants(TSRMLS_C);
+ zend_copy_constants(EG(zend_constants), global_constants_table);
+}
+#endif
+
+
void zend_shutdown(TSRMLS_D)
{
#ifdef ZEND_WIN32
Index: Zend/zend.h
diff -u Zend/zend.h:1.148 Zend/zend.h:1.148.2.1
--- Zend/zend.h:1.148 Mon Mar 4 11:46:55 2002
+++ Zend/zend.h Tue Sep 17 06:56:03 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend.h,v 1.148 2002/03/04 16:46:55 sebastian Exp $ */
+/* $Id: zend.h,v 1.148.2.1 2002/09/17 10:56:03 zeev Exp $ */
#ifndef ZEND_H
#define ZEND_H
@@ -324,6 +324,10 @@
int zend_startup(zend_utility_functions *utility_functions, char **extensions, int
start_builtin_functions);
void zend_shutdown(TSRMLS_D);
+
+#ifdef ZTS
+void zend_post_startup(TSRMLS_D);
+#endif
void zend_set_utility_values(zend_utility_values *utility_values);