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