summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 6300e4a4e5..e7bfb272d5 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -5496,11 +5496,7 @@ ZEND_METHOD(reflection_property, getValue)
}
if (ref->prop.flags & ZEND_ACC_STATIC) {
- zend_class_entry *old_scope = EG(fake_scope);
- EG(fake_scope) = ref->ce;
- member_p = zend_std_get_static_property(ref->ce, ref->unmangled_name, 0);
- EG(fake_scope) = old_scope;
-
+ member_p = zend_read_static_property_ex(ref->ce, ref->unmangled_name, 0);
if (member_p) {
ZVAL_DEREF(member_p);
ZVAL_COPY(return_value, member_p);