cvs: ZendEngine2(PHP_5_0) / zend_reflection_api.c

From: Date: Mon, 16 Aug 2004 08:49:48 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_reflection_api.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2871@lists.php.net to get a copy of this message
helly Mon Aug 16 04:49:48 2004 EDT Modified files: (Branch: PHP_5_0) /ZendEngine2 zend_reflection_api.c Log: MFH: Fix bug #29447: Reflection API issues http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.111.2.2&r2=1.111.2.3&ty=u Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.111.2.2 ZendEngine2/zend_reflection_api.c:1.111.2.3 --- ZendEngine2/zend_reflection_api.c:1.111.2.2 Tue Jul 20 14:23:49 2004 +++ ZendEngine2/zend_reflection_api.c Mon Aug 16 04:49:48 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.111.2.2 2004/07/20 18:23:49 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.111.2.3 2004/08/16 08:49:48 helly Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_exceptions.h" @@ -2304,6 +2304,7 @@ METHOD_NOTSTATIC_NUMPARAMS(0); GET_REFLECTION_OBJECT_PTR(ce); array_init(return_value); + zend_hash_apply_with_argument(&ce->constants_table, (apply_func_arg_t) zval_update_constant, (void*)1 TSRMLS_CC); zend_hash_copy(Z_ARRVAL_P(return_value), &ce->constants_table, (copy_ctor_func_t) zval_add_ref, (void *) &tmp_copy, sizeof(zval *)); } /* }}} */ @@ -2324,6 +2325,7 @@ } GET_REFLECTION_OBJECT_PTR(ce); + zend_hash_apply_with_argument(&ce->constants_table, (apply_func_arg_t) zval_update_constant, (void*)1 TSRMLS_CC); if (zend_hash_find(&ce->constants_table, name, name_len + 1, (void **) &value) == FAILURE) { RETURN_FALSE; }

« previous php.zend-engine.cvs (#2871) next »