From: Marcus Boerger Date: Wed, 1 Mar 2006 16:15:15 +0000 (+0000) Subject: - Constants need to be updated too (when updating class constants) X-Git-Tag: RELEASE_1_2~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3741cf6bcc3ffdea6662bb1bd9be7579cac4276;p=php - Constants need to be updated too (when updating class constants) --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index c67c60f38f..fdb6b932b4 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1062,6 +1062,7 @@ ZEND_API void zend_update_class_constants(zend_class_entry *class_type TSRMLS_DC zend_class_entry *old_scope = *scope; *scope = class_type; + zend_hash_apply_with_argument(&class_type->constants_table, (apply_func_arg_t) zval_update_constant, (void*)1 TSRMLS_CC); zend_hash_apply_with_argument(&class_type->default_properties, (apply_func_arg_t) zval_update_constant, (void *) 1 TSRMLS_CC); if (!CE_STATIC_MEMBERS(class_type)) {