mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixes for POSIX compliancy.
This commit is contained in:
parent
112f424f70
commit
033bc12d86
1 changed files with 4 additions and 4 deletions
|
@ -1691,8 +1691,8 @@ ZEND_API int zend_binary_strcasecmp(char *s1, uint len1, char *s2, uint len2)
|
|||
len = MIN(len1, len2);
|
||||
|
||||
while (len--) {
|
||||
c1 = tolower(*s1++);
|
||||
c2 = tolower(*s2++);
|
||||
c1 = tolower((int)*(unsigned char *)s1++);
|
||||
c2 = tolower((int)*(unsigned char *)s2++);
|
||||
if (c1 != c2) {
|
||||
return c1 - c2;
|
||||
}
|
||||
|
@ -1710,8 +1710,8 @@ ZEND_API int zend_binary_strncasecmp(char *s1, uint len1, char *s2, uint len2, u
|
|||
len = MIN(length, MIN(len1, len2));
|
||||
|
||||
while (len--) {
|
||||
c1 = tolower(*s1++);
|
||||
c2 = tolower(*s2++);
|
||||
c1 = tolower((int)*(unsigned char *)s1++);
|
||||
c2 = tolower((int)*(unsigned char *)s2++);
|
||||
if (c1 != c2) {
|
||||
return c1 - c2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue