summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2016-07-28 14:08:31 +0200
committerChristoph M. Becker <cmb@php.net>2016-07-28 14:09:29 +0200
commit6aaef1ed346fcc7f9dad58e47f6418d36c3cbe73 (patch)
treeed0c53b96864eb5fa4a148a61d80021e1bcaaada /ext/mbstring/php_mbregex.c
parentdb69ea32cb283641eba86742de36d7eb9bd485ea (diff)
parenta621023168ee00104dac20c996df3c9e8ad8edcf (diff)
downloadphp-git-6aaef1ed346fcc7f9dad58e47f6418d36c3cbe73.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index a361874729..3b5e857289 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -1297,7 +1297,7 @@ _php_mb_regex_ereg_search_exec(INTERNAL_FUNCTION_PARAMETERS, int mode)
break;
}
end = MBREX(search_regs)->end[0];
- if (pos < end) {
+ if (pos <= end) {
MBREX(search_pos) = end;
} else {
MBREX(search_pos) = pos + 1;