mirror of
https://github.com/php/php-src.git
synced 2024-09-24 11:27:28 +00:00
fix #43863 (str_word_count() breaks on cyrillic "ya" in locale cp1251)
patch by phprus at gmail dot com
This commit is contained in:
parent
d1eda9c8ac
commit
d5b7556d46
@ -7821,7 +7821,7 @@ static int php_str_word_count(char *str, int str_len, long type, char *char_list
|
||||
|
||||
while (p < e) {
|
||||
s = p;
|
||||
while (p < e && (isalpha(*p) || (char_list && ch[(unsigned char)*p]) || *p == '\'' || *p == '-')) {
|
||||
while (p < e && (isalpha((unsigned char)*p) || (char_list && ch[(unsigned char)*p]) || *p == '\'' || *p == '-')) {
|
||||
p++;
|
||||
}
|
||||
if (p > s) {
|
||||
|
Loading…
Reference in New Issue
Block a user