From de0f7c632855235dd558e21905792db27ed3474c Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sun, 1 Sep 2024 22:36:50 +0200 Subject: [PATCH] Remove redundant 'zobj->ce->__isset' check This became unnecessary due to the addition of lazy objects that added the goto when '!zobj->ce->__isset' above. --- Zend/zend_object_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index fd9bcf3f1a84f..1383c437b6423 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -2254,7 +2254,7 @@ ZEND_API int zend_std_has_property(zend_object *zobj, zend_string *name, int has } result = false; - if ((has_set_exists != ZEND_PROPERTY_EXISTS) && zobj->ce->__isset) { + if (has_set_exists != ZEND_PROPERTY_EXISTS) { uint32_t *guard = zend_get_property_guard(zobj, name); if (!((*guard) & IN_ISSET)) {