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