Skip to content

Commit 5d5103f

Browse files
committed
Fallback to has_property when prop is not lazy
1 parent 1503720 commit 5d5103f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ext/reflection/php_reflection.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6291,8 +6291,7 @@ ZEND_METHOD(ReflectionProperty, isInitialized)
62916291

62926292
/* If this is an uninitialized lazy object, do not trigger initialization. */
62936293
if (ref->prop
6294-
&& !(prop_get_flags(ref) & ZEND_ACC_STATIC)
6295-
&& !(prop_get_flags(ref) & ZEND_ACC_VIRTUAL)
6294+
&& !(prop_get_flags(ref) & (ZEND_ACC_STATIC|ZEND_ACC_VIRTUAL))
62966295
&& zend_object_is_lazy(Z_OBJ_P(object))
62976296
&& !zend_lazy_object_initialized(Z_OBJ_P(object))
62986297
) {
@@ -6301,8 +6300,6 @@ ZEND_METHOD(ReflectionProperty, isInitialized)
63016300
if (Z_PROP_FLAG_P(slot) & IS_PROP_LAZY) {
63026301
RETURN_FALSE;
63036302
}
6304-
6305-
RETURN_BOOL(!Z_ISUNDEF_P(slot));
63066303
}
63076304

63086305
const zend_class_entry *old_scope = EG(fake_scope);

0 commit comments

Comments
 (0)