Skip to content

Use zend_ast_apply in zend_eval_const_expr #11261

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

Merged

Conversation

iluuu1994
Copy link
Member

Supporting new constant expressions requires remembering to add them to zend_eval_const_expr, even if it only evalutes its children. This is routinely forgotten, at least by me. Use zend_ast_apply to solve this generically.

Supporting new constant expressions requires remembering to add them to
zend_eval_const_expr, even if it only evalutes its children. This is routinely
forgotten, at least by me. Use zend_ast_apply to solve this generically.
@iluuu1994 iluuu1994 force-pushed the zend_eval_const_expr-with-zend_ast_apply branch from 72a7300 to 27ae59a Compare May 17, 2023 15:46
@iluuu1994 iluuu1994 marked this pull request as ready for review May 17, 2023 18:27
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

This makes sense to me

@iluuu1994 iluuu1994 merged commit 1c733c8 into php:master May 24, 2023
iluuu1994 added a commit to iluuu1994/php-src that referenced this pull request May 26, 2023
iluuu1994 added a commit that referenced this pull request May 26, 2023
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