From: Marcus Boerger Date: Fri, 18 Nov 2005 22:59:07 +0000 (+0000) Subject: - Disabled globals code in a way that does not affect purist or old compilers X-Git-Tag: RELEASE_2_0_2~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71b8ed31c375b8e36d6f1c0ca7ad31673bf0d833;p=php - Disabled globals code in a way that does not affect purist or old compilers --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 8912233985..e1f05d0150 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -50,7 +50,9 @@ PHPAPI zend_class_entry *reflection_method_ptr; PHPAPI zend_class_entry *reflection_property_ptr; PHPAPI zend_class_entry *reflection_extension_ptr; +#if MBO_0 ZEND_BEGIN_MODULE_GLOBALS(reflection) + int dummy; ZEND_END_MODULE_GLOBALS(reflection) #ifdef ZTS @@ -62,11 +64,8 @@ extern int reflection_globals_id; extern zend_reflection_globals reflectionglobals; #endif -#ifdef COMPILE_DL_REFLECTION -ZEND_GET_MODULE(reflection) -#endif - ZEND_DECLARE_MODULE_GLOBALS(reflection) +#endif /* MBO_0 */ /* Method macros */ @@ -4184,17 +4183,10 @@ static void _reflection_write_property(zval *object, zval *member, zval *value T } /* }}} */ -static void reflection_init_globals(zend_reflection_globals *globals) /* {{{ */ -{ - /* Initialize your global struct */ -} /* }}} */ - PHP_MINIT_FUNCTION(reflection) /* {{{ */ { zend_class_entry _reflection_entry; - ZEND_INIT_MODULE_GLOBALS(reflection, reflection_init_globals, NULL); - zend_std_obj_handlers = zend_get_std_object_handlers(); memcpy(&reflection_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); reflection_object_handlers.clone_obj = NULL;