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