Skip to content

Use zend_str_has_nul_byte instead of memchr#21680

Merged
Girgias merged 1 commit intophp:masterfrom
LamentXU123:refactor-3
Apr 9, 2026
Merged

Use zend_str_has_nul_byte instead of memchr#21680
Girgias merged 1 commit intophp:masterfrom
LamentXU123:refactor-3

Conversation

@LamentXU123
Copy link
Copy Markdown
Contributor

Since we already has the api zend_str_has_nul_byte, this PR refactors all remaining occasions in the code base where we use memchr instead of zend_str_has_nul_byte. Another occasion in password.c would be fixed in #21675

Copy link
Copy Markdown
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.

Yeah that is way more legible, thank you! :)

@Girgias Girgias merged commit da4185a into php:master Apr 9, 2026
19 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.

2 participants