fix #43863 (str_word_count() breaks on cyrillic "ya" in locale cp1251)

patch by phprus at gmail dot com
This commit is contained in:
Antony Dovgal 2008-01-16 08:34:06 +00:00
parent d1eda9c8ac
commit d5b7556d46

View File

@ -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) {