1--TEST--
2mb_ereg_search_pos() # a test for the basic function of mb_ereg_search_pos
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7if (!function_exists("mb_regex_encoding")) die("skip mb_regex_encoding() is not defined");
8?>
9--FILE--
10<?php
11mb_regex_encoding('iso-8859-1');
12$test_str = 'I�t�rn�ti�n�liz�ti�n';
13
14if(mb_ereg_search_init($test_str))
15{
16    $val=mb_ereg_search_pos("n�ti�n");
17
18    var_dump($val);
19
20}
21else{
22    var_dump("false");
23}
24?>
25--EXPECT--
26array(2) {
27  [0]=>
28  int(5)
29  [1]=>
30  int(6)
31}
32