Skip to content

ext/xml: Use zend_hash_find_ptr_lc() to avoid allocation in some cases #14840

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
Jul 6, 2024

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Jul 6, 2024

No description provided.

Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

LGTM but confused by your PR description.

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.

LGTM

@nielsdos
Copy link
Member Author

nielsdos commented Jul 6, 2024

LGTM but confused by your PR description.

This function internally can avoid allocating a new string on the heap if the string is short.

@devnexen
Copy link
Member

devnexen commented Jul 6, 2024

ok was not sure if you were referring to zend_string_tolower or not. but LGTM anyway :)

@nielsdos nielsdos merged commit 8c8322f into php:master Jul 6, 2024
11 checks passed
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