Skip to content

Conversation

@ndossche
Copy link
Member

@ndossche ndossche commented Nov 2, 2025

Reduction of 1325 -> 1213 on x86-64 with GCC 15.2.1.

Reduction of 1325 -> 1213 on x86-64 with GCC 15.2.1.
}

needle_dup = zend_string_tolower(needle);
if ((found = (char *)zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {
Copy link
Member

Choose a reason for hiding this comment

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

Follow-up PR/commit suggestion.

Suggested change
if ((found = (char *)zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {
if ((found = zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {

Copy link
Member Author

Choose a reason for hiding this comment

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

Feel free to commit that ;)

@ndossche ndossche merged commit 9300a50 into php:master Nov 2, 2025
10 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