php-src/ext/iconv/tests/bug37176.phpt
Antony Dovgal 32561d65b8 fix tests
2007-02-21 19:53:48 +00:00

21 lines
357 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)