Annotation of embedaddon/php/ext/iconv/tests/bug37773.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #37773 (iconv_substr() gives "Unknown error" when string length = 1")
! 3: --SKIPIF--
! 4: <?php
! 5: include('skipif.inc');
! 6:
! 7: $test = @iconv_strpos("abbttt","ttt",0,"UTF-8");
! 8: if ($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--
! 18: string(1) "x"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>