summaryrefslogtreecommitdiff
path: root/ext/iconv/tests/bug37773.phpt
blob: 1a52f66221fd5f825824c2fe09b2dae274a00cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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"
--UEXPECT--
unicode(1) "x"