diff options
author | Rui Hirokawa <hirokawa@php.net> | 2002-05-04 11:20:12 +0000 |
---|---|---|
committer | Rui Hirokawa <hirokawa@php.net> | 2002-05-04 11:20:12 +0000 |
commit | fa1904b6e83dfd3475dc37c30a4eba71032de6ad (patch) | |
tree | 1345b0a9e2649d4ab30473e89dd5560251fa8519 /ext/standard/reg.c | |
parent | ae828233feb1e0d90c722c33fecb3fb6f4a21578 (diff) | |
download | php-git-fa1904b6e83dfd3475dc37c30a4eba71032de6ad.tar.gz |
fixed a problem that ereg_replace() couldn't match with line stand/end marker.
Diffstat (limited to 'ext/standard/reg.c')
-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 02e39e401f..0335347b39 100644 --- a/ext/standard/reg.c +++ b/ext/standard/reg.c @@ -372,7 +372,7 @@ PHPAPI char *php_reg_replace(const char *pattern, const char *replace, const cha && subs[walk[1] - '0'].rm_so > -1 && subs[walk[1] - '0'].rm_eo > -1 /* this next case shouldn't happen. it does. */ - && subs[walk[1] - '0'].rm_so < subs[walk[1] - '0'].rm_eo) { + && subs[walk[1] - '0'].rm_so <= subs[walk[1] - '0'].rm_eo) { tmp = subs[walk[1] - '0'].rm_eo - subs[walk[1] - '0'].rm_so; memcpy (walkbuf, |