Skip to content

zend_compile.c: remove unneeded const_expr_context wrapper for boolean#15925

Closed
DanielEScherzer wants to merge 1 commit into
php:masterfrom
DanielEScherzer:const-expr-context
Closed

zend_compile.c: remove unneeded const_expr_context wrapper for boolean#15925
DanielEScherzer wants to merge 1 commit into
php:masterfrom
DanielEScherzer:const-expr-context

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

The struct only has a single value, whether to allow expressions with dynamic values - instead of using a struct, just pass around the boolean value.

The struct only has a single value, whether to allow expressions with dynamic
values - instead of using a struct, just pass around the boolean value.
@DanielEScherzer

Copy link
Copy Markdown
Member Author

CC @nikic - added in #7153

@ndossche

Copy link
Copy Markdown
Member

These things make it easy to add more contextual variables later on, so I'd rather not get rid of this.

@iluuu1994

Copy link
Copy Markdown
Member

I would agree. We generally try to avoid making changes that aren't objectively better, because that opens up the possibility for ping pong changes, based on personal preference. Thanks nonetheless!

@DanielEScherzer It's nice to see a new returning contributor! Keep it up! Ping us on chat.stackoverflow.com[slash]rooms/11/php, or on Discord (#internals channel) if you get stuck on anything.

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