[php-src] PR #19571: Zend: add even more const qualifiers
| From: | Girgias | Date: | Sun, 24 Aug 2025 12:02:08 +0000 |
| Subject: | [php-src] PR #19571: Zend: add even more const qualifiers | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32891@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19571
Author: Girgias
See motivation in: https://github.com/php/php-src/pull/19045#discussion_r2296611988
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.