Skip to content

Zend: add even more const qualifiers#19571

Merged
Girgias merged 1 commit intophp:masterfrom
Girgias:constify-attribute-ce
Mar 23, 2026
Merged

Zend: add even more const qualifiers#19571
Girgias merged 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
Copy link
Member

@dstogov dstogov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see problems

@Girgias Girgias merged commit be1ae8e into php:master Mar 23, 2026
19 checks passed
@Girgias Girgias deleted the constify-attribute-ce branch March 23, 2026 10:52
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.

3 participants