summaryrefslogtreecommitdiff
path: root/ext/iconv/tests/bug37176.phpt
blob: 70242fe0917d0057125079610af5de3035b8d4a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #37176 (iconv_strpos() fails to find a string)
--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_strpos('11--','1-',0,'UTF-8'));
var_dump(iconv_strpos('-11--','1-',0,'UTF-8'));
?>
--EXPECT--
int(1)
int(2)