diff options
author | Sascha Schumann <sas@php.net> | 2000-05-15 09:55:03 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-05-15 09:55:03 +0000 |
commit | 4a658e8b51da2d16bec9ff34e75423df0fa3af15 (patch) | |
tree | 367f9e2be2e72580a55143eb7a0b9b68cc29c679 | |
parent | c693ca137f7a948540ea9c285d8d74405e438b7d (diff) | |
download | php-git-4a658e8b51da2d16bec9ff34e75423df0fa3af15.tar.gz |
Drop slower strchr in favor of memchr.
-rw-r--r-- | ext/session/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 142aed4e82..707eced2ae 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -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; |