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