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

Remove ZEND_ACC_ABSTRACT from prop variance check

Abstract properties are now virtual, unless they actually contain concrete hook
implementations using the backing field.
This commit is contained in:
Ilija Tovilo
2024-08-23 16:13:23 +02:00
parent 7e45e57d8f
commit 8fcf34d598

View File

@@ -1396,7 +1396,7 @@ static void inherit_property_hook(
}
static prop_variance prop_get_variance(zend_property_info *prop_info) {
bool unbacked = prop_info->flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_VIRTUAL);
bool unbacked = prop_info->flags & ZEND_ACC_VIRTUAL;
if (unbacked && prop_info->hooks) {
if (!prop_info->hooks[ZEND_PROPERTY_HOOK_SET]) {
return PROP_COVARIANT;