xref: /PHP-5.6/ext/mbstring/tests/bug72694.phpt (revision ee6900c3)
1--TEST--
2Bug #72694 (mb_ereg_search_setpos does not accept a string's last position)
3--SKIPIF--
4<?php
5if (!extension_loaded('mbstring')) die('skip ext/mbstring required');
6?>
7--FILE--
8<?php
9mb_ereg_search_init('foo');
10
11var_dump(mb_ereg_search_setpos(3));
12var_dump(mb_ereg_search_getpos());
13
14var_dump(mb_ereg_search('\Z'));
15var_dump(mb_ereg_search_getpos());
16?>
17--EXPECT--
18bool(true)
19int(3)
20bool(true)
21int(3)
22