-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JIT+private array property access inside closure accesses private property in child class #12380
Comments
Thanks for the nice reproducer, I can reproduce this with the tracing jit only (not function jit etc). EDIT: I think the problem is that zend_get_known_property_info doesn't take into account that the scope matters for private properties, I'll try something and report back. |
@danog Fantastic, thank you for the reproducer! 🙂 |
…esses private property in child class For private fields, the scope has to be taken into account, otherwise the property info may come from the wrong ce.
…esses private property in child class For private fields, the scope has to be taken into account, otherwise the property info may come from the wrong ce.
Description
The following code:
Resulted in this output:
But I expected this output instead:
This is the root cause of #12249
Ping @dstogov
PHP Version
8.2.11
Operating System
Arch linux
The text was updated successfully, but these errors were encountered: