2016-07-28 13:21:48 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #72694 (mb_ereg_search_setpos does not accept a string's last position)
|
2021-06-11 09:57:42 +00:00
|
|
|
--EXTENSIONS--
|
|
|
|
mbstring
|
2016-07-28 13:21:48 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
2018-08-04 22:01:35 +00:00
|
|
|
if (!function_exists('mb_ereg')) die('skip mbregex support not available');
|
2016-07-28 13:21:48 +00:00
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
mb_ereg_search_init('foo');
|
|
|
|
|
|
|
|
var_dump(mb_ereg_search_setpos(3));
|
|
|
|
var_dump(mb_ereg_search_getpos());
|
|
|
|
|
|
|
|
var_dump(mb_ereg_search('\Z'));
|
|
|
|
var_dump(mb_ereg_search_getpos());
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
bool(true)
|
|
|
|
int(3)
|
|
|
|
bool(true)
|
|
|
|
int(3)
|