mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use cheaper memchr() instead of php_memnstr()
This commit is contained in:
parent
c7484ef956
commit
1a4f49f1fe
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ static zend_result php_mb_parse_encoding_list(const char *value, size_t value_le
|
|||
included_auto = 0;
|
||||
p1 = tmpstr;
|
||||
while (1) {
|
||||
char *comma = (char *) php_memnstr(p1, ",", 1, endp);
|
||||
char *comma = memchr(p1, ',', endp - p1);
|
||||
char *p = comma ? comma : endp;
|
||||
*p = '\0';
|
||||
/* trim spaces */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue