tony2001 Thu Jun 1 14:31:03 2006 UTC Modified files: /php-src/ext/reflection php_reflection.c Log: ignore my previous fix, it was wrong =) http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/php_reflection.c?r1=1.230&r2=1.231&diff_format=u Index: php-src/ext/reflection/php_reflection.c diff -u php-src/ext/reflection/php_reflection.c:1.230 php-src/ext/reflection/php_reflection.c:1.231 --- php-src/ext/reflection/php_reflection.c:1.230 Thu Jun 1 12:25:32 2006 +++ php-src/ext/reflection/php_reflection.c Thu Jun 1 14:31:02 2006 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_reflection.c,v 1.230 2006/06/01 12:25:32 tony2001 Exp $ */ +/* $Id: php_reflection.c,v 1.231 2006/06/01 14:31:02 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -2947,7 +2947,7 @@ /* }}} */ /* {{{ _addmethod */ -static int _addmethod(zend_function *mptr, int num_args, va_list args, zend_hash_key *hash_key TSRMLS_DC) +static int _addmethod(zend_function *mptr, int num_args, va_list args, zend_hash_key *hash_key) { zval *method; zend_class_entry *ce = *va_arg(args, zend_class_entry**); @@ -2955,6 +2955,7 @@ long filter = va_arg(args, long); if (mptr->common.fn_flags & filter) { + TSRMLS_FETCH(); ALLOC_ZVAL(method); reflection_method_factory(ce, mptr, method TSRMLS_CC); add_next_index_zval(retval, method); @@ -3079,7 +3080,7 @@ /* }}} */ /* {{{ _addproperty */ -static int _addproperty(zend_property_info *pptr, int num_args, va_list args, zend_hash_key *hash_key TSRMLS_DC) +static int _addproperty(zend_property_info *pptr, int num_args, va_list args, zend_hash_key *hash_key) { zval *property; zend_class_entry *ce = *va_arg(args, zend_class_entry**); @@ -3091,6 +3092,7 @@ } if (pptr->flags & filter) { + TSRMLS_FETCH(); ALLOC_ZVAL(property); reflection_property_factory(ce, pptr, property TSRMLS_CC); add_next_index_zval(retval, property); @@ -4542,7 +4544,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.230 2006/06/01 12:25:32 tony2001 Exp $"); + 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_end(); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php