]> granicus.if.org Git - php/commit
Fix #72694: mb_ereg_search_setpos does not accept a string's last position
authorChristoph M. Becker <cmb@php.net>
Thu, 28 Jul 2016 13:21:48 +0000 (15:21 +0200)
committerChristoph M. Becker <cmb@php.net>
Thu, 28 Jul 2016 13:21:48 +0000 (15:21 +0200)
commitee6900c3de68f1b94dfae8e230c7fa755c7fa595
tree230f66edfe04dfa13b0172ef4ae1a32567913c90
parent56cdaecb284b2b292ce1ecb076c1f8b041e47a02
Fix #72694: mb_ereg_search_setpos does not accept a string's last position

Setting the search position immediately behind the last character should be
allowed, so we fix this off-by-one error.
NEWS
ext/mbstring/php_mbregex.c
ext/mbstring/tests/bug72694.phpt [new file with mode: 0644]