We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bbbd19 commit ca3813aCopy full SHA for ca3813a
Zend/zend_inheritance.c
@@ -1694,9 +1694,8 @@ void zend_build_properties_info_table(zend_class_entry *ce)
1694
if (UNEXPECTED(root_prop->flags & ZEND_ACC_VIRTUAL)) {
1695
/* Prototype is virtual, we need to manually hunt down the first backed property. */
1696
root_prop = prop;
1697
- while (true) {
1698
- zend_class_entry *parent_ce = root_prop->ce->parent;
1699
- if (!parent_ce) { break; }
+ zend_class_entry *parent_ce;
+ while ((parent_ce = root_prop->ce->parent)) {
1700
zend_property_info *parent_prop = zend_hash_find_ptr(&parent_ce->properties_info, key);
1701
if (!parent_prop
1702
|| parent_prop->prototype != prop->prototype
0 commit comments