[php-src] PR #21680: Use `zend_str_has_nul_byte` instead of memchr
| From: | LamentXU123 | Date: | Thu, 09 Apr 2026 09:34:48 +0000 |
| Subject: | [php-src] PR #21680: Use `zend_str_has_nul_byte` instead of memchr | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35629@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21680
Author: LamentXU123
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