mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Drop slower strchr in favor of memchr.
This commit is contained in:
parent
c693ca137f
commit
4a658e8b51
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ PS_SERIALIZER_DECODE_FUNC(php)
|
|||
int has_value;
|
||||
|
||||
current = (zval *) ecalloc(sizeof(zval), 1);
|
||||
for (p = q = val; (p < endptr) && (q = strchr(p, '|')); p = q) {
|
||||
for (p = q = val; (p < endptr) && (q = memchr(p, '|', endptr - p)); p = q) {
|
||||
if (p[0] == '!') {
|
||||
p++;
|
||||
has_value = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue