summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2008-12-30 20:15:28 +0000
committerMarcus Boerger <helly@php.net>2008-12-30 20:15:28 +0000
commit826cc0dc3ddaa4c9e5d5f58ec4689260d91b68a1 (patch)
tree70cb4edbab070fb7c1ce8e1bd67a7d7824c2f193 /Zend/zend.c
parentcae97c3b8e3be9728e21ecfb577aa268a48af671 (diff)
downloadphp-git-826cc0dc3ddaa4c9e5d5f58ec4689260d91b68a1.tar.gz
- MFH Provide a core module that contains all Zend and php/main (in 5.3 incl. stdClass)
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 5f51d71028..ff85af9061 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -442,6 +442,7 @@ static void register_standard_class(TSRMLS_D) /* {{{ */
zend_initialize_class_data(zend_standard_class_def, 1 TSRMLS_CC);
zend_hash_add(CG(class_table), "stdclass", sizeof("stdclass"), &zend_standard_class_def, sizeof(zend_class_entry *), NULL);
+ zend_standard_class_def->module = EG(current_module);
}
/* }}} */
@@ -698,6 +699,10 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
EG(user_error_handler) = NULL;
EG(user_exception_handler) = NULL;
#endif
+ if (start_builtin_functions) {
+ zend_startup_builtin_functions(TSRMLS_C);
+ }
+
register_standard_class(TSRMLS_C);
zend_register_standard_constants(TSRMLS_C);
zend_register_auto_global("GLOBALS", sizeof("GLOBALS") - 1, NULL TSRMLS_CC);
@@ -707,10 +712,6 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
zend_init_exception_op(TSRMLS_C);
#endif
- if (start_builtin_functions) {
- zend_startup_builtin_functions(TSRMLS_C);
- }
-
zend_ini_startup(TSRMLS_C);
#ifdef ZTS