mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix property hook backing value access in multi-level inheritance
Discovered by Niels when testing GH-17376.
This commit is contained in:
parent
c8bead8393
commit
7a55116f12
3 changed files with 74 additions and 1 deletions
|
@ -1436,7 +1436,7 @@ static void do_inherit_property(zend_property_info *parent_info, zend_string *ke
|
|||
}
|
||||
if (!(parent_info->flags & ZEND_ACC_PRIVATE)) {
|
||||
if (!(parent_info->ce->ce_flags & ZEND_ACC_INTERFACE)) {
|
||||
child_info->prototype = parent_info;
|
||||
child_info->prototype = parent_info->prototype;
|
||||
}
|
||||
|
||||
if (UNEXPECTED((parent_info->flags & ZEND_ACC_STATIC) != (child_info->flags & ZEND_ACC_STATIC))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue