Skip to content

Commit 11491b6

Browse files
committed
Also zend_str_tolower_dup_ex
1 parent 58005d7 commit 11491b6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Zend/zend_operators.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,12 +2522,8 @@ ZEND_API char* ZEND_FASTCALL zend_str_tolower_dup_ex(const char *source, size_t
25222522
memcpy(res, source, p - (const unsigned char*)source);
25232523
}
25242524
r = (unsigned char*)p + (res - source);
2525-
while (p < end) {
2526-
*r = zend_tolower_ascii(*p);
2527-
p++;
2528-
r++;
2529-
}
2530-
*r = '\0';
2525+
zend_str_tolower_impl((char *)r, (const char*)p, end - p);
2526+
res[length] = '\0';
25312527
return res;
25322528
}
25332529
p++;

0 commit comments

Comments
 (0)