Marcus,

are you going to be using any module globals in the extension?
I had to remove the code for it to get it to build on windows - patached attached.

Though it does build fine if you do define some.

Rob
Index: php_reflection.c
===================================================================
RCS file: /repository/php-src/ext/reflection/php_reflection.c,v
retrieving revision 1.190
diff -u -r1.190 php_reflection.c
--- php_reflection.c    17 Nov 2005 22:59:38 -0000      1.190
+++ php_reflection.c    18 Nov 2005 03:14:00 -0000
@@ -50,18 +50,6 @@
 PHPAPI zend_class_entry *reflection_property_ptr;
 PHPAPI zend_class_entry *reflection_extension_ptr;
 
-ZEND_BEGIN_MODULE_GLOBALS(reflection)
-ZEND_END_MODULE_GLOBALS(reflection)
-
-#ifdef ZTS
-# define REFLECTION_G(v) \
-       TSRMG(reflection_globals_id, zend_reflection_globals*, v)
-extern int reflection_globals_id;
-#else
-# define REFLECTION_G(v) (reflection_globals.v)
-extern zend_reflection_globals reflectionglobals;
-#endif
-
 #ifdef COMPILE_DL_REFLECTION
 ZEND_GET_MODULE(reflection)
 #endif
@@ -4184,17 +4172,10 @@
 }
 /* }}} */
 
-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;

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to