Skip to content

Zend: add even more const qualifiers #19571

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Aug 24, 2025

See motivation in: #19045 (comment)

One problem is that during the chain we reach zend_ast_evaluate() which passes the scope to zend_ast_evaluate_inner(), which passes the scope to zend_create_closure(), this then assigns this to the called_scope field of zend_closure.
However, this field is accessible via the **ce_ptr argument of zend_closure_get_closure(), and this then creates a whole new chain of being used in FCCs that I haven't been able to track yet.

@TimWolla
Copy link
Member

Would probably make sense to split this into more self-contained commits. e.g. the zend_read_property* changes are independently useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants