]> granicus.if.org Git - php/commitdiff
- Fix by Tim
authorMarcus Boerger <helly@php.net>
Sun, 6 Mar 2005 22:15:35 +0000 (22:15 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 6 Mar 2005 22:15:35 +0000 (22:15 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 0434579027bd2c44150dd35c02879dd808e050e9..bf1000ea910e47527a70253bbb12e72d0cd8389d 100644 (file)
@@ -3358,6 +3358,7 @@ ZEND_METHOD(reflection_property, getValue)
        }
 
        if ((ref->prop->flags & ZEND_ACC_STATIC)) {
+               zend_update_class_constants(intern->ce TSRMLS_CC);
                if (zend_hash_quick_find(intern->ce->static_members, ref->prop->name, ref->prop->name_length + 1, ref->prop->h, (void **) &member) == FAILURE) {
                        zend_error(E_ERROR, "Internal error: Could not find the property %s", ref->prop->name);
                        /* Bails out */
index 0434579027bd2c44150dd35c02879dd808e050e9..bf1000ea910e47527a70253bbb12e72d0cd8389d 100644 (file)
@@ -3358,6 +3358,7 @@ ZEND_METHOD(reflection_property, getValue)
        }
 
        if ((ref->prop->flags & ZEND_ACC_STATIC)) {
+               zend_update_class_constants(intern->ce TSRMLS_CC);
                if (zend_hash_quick_find(intern->ce->static_members, ref->prop->name, ref->prop->name_length + 1, ref->prop->h, (void **) &member) == FAILURE) {
                        zend_error(E_ERROR, "Internal error: Could not find the property %s", ref->prop->name);
                        /* Bails out */