]> granicus.if.org Git - php/commitdiff
- Constants need to be updated too (when updating class constants)
authorMarcus Boerger <helly@php.net>
Wed, 1 Mar 2006 16:15:15 +0000 (16:15 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 1 Mar 2006 16:15:15 +0000 (16:15 +0000)
Zend/zend_API.c

index c67c60f38f05478f3b4dbe15f540850a99854467..fdb6b932b46b3ac20b0ff98503ec243a796255d3 100644 (file)
@@ -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)) {