Skip to content

Zend: add even more const qualifiers#19571

Open
Girgias wants to merge 1 commit intophp:masterfrom
Girgias:constify-attribute-ce
Open

Zend: add even more const qualifiers#19571
Girgias wants to merge 1 commit intophp:masterfrom
Girgias:constify-attribute-ce

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.

@Girgias Girgias force-pushed the constify-attribute-ce branch from a1beac3 to 4087034 Compare March 21, 2026 17:40
@Girgias Girgias marked this pull request as ready for review March 21, 2026 18:48
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