mirror of
https://github.com/php/php-src.git
synced 2025-01-09 12:34:14 +08:00
Merge branch 'PHP-7.4'
This commit is contained in:
commit
f16ad678f7
@ -43,6 +43,8 @@ class Z {
|
||||
public a $bar;
|
||||
}
|
||||
|
||||
class Z2 extends Z {}
|
||||
|
||||
function get_anon() {
|
||||
return new class {};
|
||||
}
|
||||
|
@ -943,8 +943,9 @@ static void zend_update_parent_ce(zend_class_entry *ce)
|
||||
zend_class_entry *ce = ZEND_TYPE_CE(prop->type);
|
||||
if (ce->type == ZEND_USER_CLASS) {
|
||||
ce = zend_shared_alloc_get_xlat_entry(ce);
|
||||
ZEND_ASSERT(ce);
|
||||
prop->type = ZEND_TYPE_ENCODE_CE(ce, ZEND_TYPE_ALLOW_NULL(prop->type));
|
||||
if (ce) {
|
||||
prop->type = ZEND_TYPE_ENCODE_CE(ce, ZEND_TYPE_ALLOW_NULL(prop->type));
|
||||
}
|
||||
}
|
||||
}
|
||||
} ZEND_HASH_FOREACH_END();
|
||||
|
Loading…
Reference in New Issue
Block a user