Skip to content

Zend: Various refactor with zend_hash_str_find_ptr_lc - #23293

Open
LamentXU123 wants to merge 1 commit into
php:masterfrom
LamentXU123:zend-extension-loaded-refactor
Open

Zend: Various refactor with zend_hash_str_find_ptr_lc#23293
LamentXU123 wants to merge 1 commit into
php:masterfrom
LamentXU123:zend-extension-loaded-refactor

Conversation

@LamentXU123

Copy link
Copy Markdown
Member

zend_hash_str_find_ptr_lc is very useful in place we need to deal with lower case strings. Here we use it to replace the process of first creating the string, turn it to lower case and free it.

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm surprised that PHP extensions are case insensitive, but the change makes sense.

@devnexen

Copy link
Copy Markdown
Member

one nice follow-up, if that makes sense, would be to update ini_get_all() lookup then ?

@LamentXU123

Copy link
Copy Markdown
Member Author

one nice follow-up, if that makes sense, would be to update ini_get_all() lookup then ?

Yes, ini_get_all("Pcre") now returns False. But would this requires a RFC or a email to the list?

@devnexen

Copy link
Copy Markdown
Member

there are probably more things to unpack and update than just this change now thinking of it, so yes at least an email.

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