summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-01-16 08:34:33 +0000
committerAntony Dovgal <tony2001@php.net>2008-01-16 08:34:33 +0000
commit20b021b209f2d74ccec7862e5900e962b4535011 (patch)
treecd33af1ed76741c4e7594db31c7df17f98a7813f /ext/standard
parenta498d64cebd5ade7bd28b291506f5a1a14c3ad78 (diff)
downloadphp-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.c2
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) {