1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 20:53:00 +02:00

Fixed crash

This commit is contained in:
Dmitry Stogov
2019-01-25 11:53:31 +03:00
parent 24085b187a
commit 0ff71aead1

View File

@@ -2285,7 +2285,8 @@ static zend_property_info *lookup_prop_info(zend_class_entry *ce, zend_string *n
zend_property_info *prop_info;
/* If the class is linked, reuse the precise runtime logic. */
if (ce->ce_flags & ZEND_ACC_LINKED) {
if ((ce->ce_flags & ZEND_ACC_LINKED)
&& (!scope || (scope->ce_flags & ZEND_ACC_LINKED))) {
zend_class_entry *prev_scope = EG(fake_scope);
EG(fake_scope) = scope;
prop_info = zend_get_property_info(ce, name, 1);