1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/ext/iconv/tests/bug37773.phpt
T
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

19 lines
334 B
PHP

--TEST--
Bug #37773 (iconv_substr() gives "Unknown error" when string length = 1")
--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_substr('x', 0, 1, 'UTF-8'));
?>
--EXPECT--
string(1) "x"