We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1503720 commit 5d5103fCopy full SHA for 5d5103f
1 file changed
ext/reflection/php_reflection.c
@@ -6291,8 +6291,7 @@ ZEND_METHOD(ReflectionProperty, isInitialized)
6291
6292
/* If this is an uninitialized lazy object, do not trigger initialization. */
6293
if (ref->prop
6294
- && !(prop_get_flags(ref) & ZEND_ACC_STATIC)
6295
- && !(prop_get_flags(ref) & ZEND_ACC_VIRTUAL)
+ && !(prop_get_flags(ref) & (ZEND_ACC_STATIC|ZEND_ACC_VIRTUAL))
6296
&& zend_object_is_lazy(Z_OBJ_P(object))
6297
&& !zend_lazy_object_initialized(Z_OBJ_P(object))
6298
) {
@@ -6301,8 +6300,6 @@ ZEND_METHOD(ReflectionProperty, isInitialized)
6301
6300
if (Z_PROP_FLAG_P(slot) & IS_PROP_LAZY) {
6302
RETURN_FALSE;
6303
}
6304
-
6305
- RETURN_BOOL(!Z_ISUNDEF_P(slot));
6306
6307
6308
const zend_class_entry *old_scope = EG(fake_scope);
0 commit comments