Skip to content

zend_string: Simplify logic in zend_interned_strings_init() #18922

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
merged 1 commit into from
Jun 24, 2025

Conversation

TimWolla
Copy link
Member

No need to manually init a zend_string to then intern it, we can directly intern it while initializing, bypassing some of the safety checks that are redundant in this case.

No need to manually init a `zend_string` to then intern it, we can directly
intern it while initializing, bypassing some of the safety checks that are
redundant in this case.
@TimWolla TimWolla marked this pull request as ready for review June 24, 2025 06:47
@TimWolla TimWolla requested a review from dstogov as a code owner June 24, 2025 06:47
@TimWolla TimWolla merged commit d6fc743 into php:master Jun 24, 2025
9 checks passed
@TimWolla TimWolla deleted the zend-string-interned-simplify branch June 24, 2025 06:50
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