xref: /PHP-7.0/ext/iconv/tests/bug37176.phpt (revision 7255b4b9)
1--TEST--
2Bug #37176 (iconv_strpos() fails to find a string)
3--SKIPIF--
4<?php
5include('skipif.inc');
6
7$test = @iconv_strpos("abbttt","ttt",0,"UTF-8");
8if ($test === false) {
9	die("skip UTF-8 is not supported?");
10}
11
12?>
13--FILE--
14<?php
15var_dump(iconv_strpos('11--','1-',0,'UTF-8'));
16var_dump(iconv_strpos('-11--','1-',0,'UTF-8'));
17?>
18--EXPECT--
19int(1)
20int(2)
21