diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-02-24 16:54:21 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-02-24 16:54:21 +0000 |
| commit | 93b6d05bb8db1b731b27a0a0deb9c046cc874ef0 (patch) | |
| tree | 96e98fe59c7132e5767aac252440885d211daa38 /ext/standard | |
| parent | a67e4dac8f9caf14cf12d4d7c8e54dc2495ad173 (diff) | |
| download | php-git-93b6d05bb8db1b731b27a0a0deb9c046cc874ef0.tar.gz | |
Forgot to fix this part
Diffstat (limited to 'ext/standard')
| -rw-r--r-- | ext/standard/reg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/reg.c b/ext/standard/reg.c index 1eb83f0187..e76dee7c0d 100644 --- a/ext/standard/reg.c +++ b/ext/standard/reg.c @@ -324,7 +324,7 @@ PHPAPI char *php_reg_replace(const char *pattern, const char *replace, const cha new_l = strlen(buf) + subs[0].rm_so; /* part before the match */ walk = replace; while (*walk) { - if ('\\' == *walk && isdigit(walk[1]) && ((unsigned char)walk[1]) - '0' <= re.re_nsub) { + if ('\\' == *walk && isdigit((unsigned char)walk[1]) && ((unsigned char)walk[1]) - '0' <= re.re_nsub) { if (subs[walk[1] - '0'].rm_so > -1 && subs[walk[1] - '0'].rm_eo > -1) { new_l += subs[walk[1] - '0'].rm_eo - subs[walk[1] - '0'].rm_so; } |
