Re: cvs: php-src /ext/reflection php_reflection.c
| From: | Steph Fox | Date: | Sun, 04 Jun 2006 10:28:19 +0000 |
| Subject: | Re: cvs: php-src /ext/reflection php_reflection.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-38594@lists.php.net to get a copy of this message | ||
Helly, hi,
This won't work unless zend_compile.h is included in zend_API.c...
(and I still think you need the ABSTRACT flag in there for Reflector too ;)
- Steph
----- Original Message ----- From: "Marcus Boerger" <helly@php.net>
To: <php-cvs@lists.php.net>
Sent: Sunday, June 04, 2006 12:11 PM
Subject: [PHP-CVS] cvs: php-src /ext/reflection php_reflection.c
helly Sun Jun 4 10:11:49 2006 UTC Modified files: /php-src/ext/reflection php_reflection.c Log: - Use engine call to register interfaces (steph) http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/php_reflection.c?r1=1.231&r2=1.232&diff_format=u Index: php-src/ext/reflection/php_reflection.c diff -u php-src/ext/reflection/php_reflection.c:1.231 php-src/ext/reflection/php_reflection.c:1.232 --- php-src/ext/reflection/php_reflection.c:1.231 Thu Jun 1 14:31:02 2006 +++ php-src/ext/reflection/php_reflection.c Sun Jun 4 10:11:48 2006 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_reflection.c,v 1.231 2006/06/01 14:31:02 tony2001 Exp $ */ +/* $Id: php_reflection.c,v 1.232 2006/06/04 10:11:48 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -4474,8 +4474,7 @@ reflection_ptr = zend_register_internal_class(&_reflection_entry TSRMLS_CC); INIT_CLASS_ENTRY(_reflection_entry, "Reflector", reflector_functions); - reflector_ptr = zend_register_internal_class(&_reflection_entry TSRMLS_CC); - reflector_ptr->ce_flags = ZEND_ACC_ABSTRACT | ZEND_ACC_INTERFACE; + reflector_ptr = zend_register_internal_interface(&_reflection_entry TSRMLS_CC); INIT_CLASS_ENTRY(_reflection_entry, "ReflectionFunction", reflection_function_functions); _reflection_entry.create_object = reflection_objects_new; @@ -4544,7 +4543,7 @@ php_info_print_table_start(); php_info_print_table_header(2, "Reflection", "enabled"); - php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.231 2006/06/01 14:31:02 tony2001 Exp $"); + php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.232 2006/06/04 10:11:48 helly Exp $"); php_info_print_table_end(); } /* }}} */ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com