diff options
author | Antony Dovgal <tony2001@php.net> | 2008-01-16 08:34:33 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2008-01-16 08:34:33 +0000 |
commit | 20b021b209f2d74ccec7862e5900e962b4535011 (patch) | |
tree | cd33af1ed76741c4e7594db31c7df17f98a7813f /ext/standard | |
parent | a498d64cebd5ade7bd28b291506f5a1a14c3ad78 (diff) | |
download | php-git-20b021b209f2d74ccec7862e5900e962b4535011.tar.gz |
MFH: fix #43863 (str_word_count() breaks on cyrillic "ya" in locale cp1251)
patch by phprus at gmail dot com
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index eab5b24da5..5b0d029d4f 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -5142,7 +5142,7 @@ PHP_FUNCTION(str_word_count) 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) { |