mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Also zend_str_tolower_dup_ex
This commit is contained in:
parent
58005d7b42
commit
11491b63f8
1 changed files with 2 additions and 6 deletions
|
@ -2522,12 +2522,8 @@ ZEND_API char* ZEND_FASTCALL zend_str_tolower_dup_ex(const char *source, size_t
|
|||
memcpy(res, source, p - (const unsigned char*)source);
|
||||
}
|
||||
r = (unsigned char*)p + (res - source);
|
||||
while (p < end) {
|
||||
*r = zend_tolower_ascii(*p);
|
||||
p++;
|
||||
r++;
|
||||
}
|
||||
*r = '\0';
|
||||
zend_str_tolower_impl((char *)r, (const char*)p, end - p);
|
||||
res[length] = '\0';
|
||||
return res;
|
||||
}
|
||||
p++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue