[php-src] PR #12381: Fix GH-12380: JIT+private array property access inside closure accesses private property in child class
| From: | nielsdos | Date: | Sat, 07 Oct 2023 22:57:10 +0000 |
| Subject: | [php-src] PR #12381: Fix GH-12380: JIT+private array property access inside closure accesses private property in child class | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23807@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12381
Author: nielsdos
For private fields, the scope has to be taken into account, otherwise the property info may come
from the wrong ce.
Maybe this can be improved further by checking
is_derived_class(ce, scope) and then
reading the property info from the scope, e.g. by using return
zend_get_parent_private_property(op_array->scope, ce, member);.