1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/ext/iconv/tests/bug37176.phpt
T
2018-10-14 12:07:20 -03:00

21 lines
355 B
PHP

--TEST--
Bug #37176 (iconv_strpos() fails to find a string)
--SKIPIF--
<?php
include('skipif.inc');
$test = @iconv_strpos("abbttt","ttt",0,"UTF-8");
if ($test === false) {
die("skip UTF-8 is not supported?");
}
?>
--FILE--
<?php
var_dump(iconv_strpos('11--','1-',0,'UTF-8'));
var_dump(iconv_strpos('-11--','1-',0,'UTF-8'));
?>
--EXPECT--
int(1)
int(2)