Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] reflection ext [RSS Feed]

#1 Nov. 18, 2005 03:12:34

Rob R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] reflection ext


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 - patachedattached.Though it does build fine if you do define some.

RobIndex: 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

Offline

#2 Nov. 18, 2005 07:10:13

Marcus B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] reflection ext


Hello Rob,

we can define a dummy in it. I thought that some compilter don't like
empty structs.

marcus

Friday, November 18, 2005, 4:18:51 AM, you wrote:

> 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



Best regards,
Marcus

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

Offline

#3 Nov. 18, 2005 07:57:54

Jani T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] reflection ext


Yes, but if you're not planning to have any module globals,
wouldn't it be better to just nuke the lines?

--Jani

On Fri, 18 Nov 2005, Marcus Boerger wrote:Hello Rob,

we can define a dummy in it. I thought that some compilter don't like
empty structs.

marcus

Friday, November 18, 2005, 4:18:51 AM, you wrote: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.RobBest regards,
Marcus--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PHP-DEV] reflection ext [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support