mirror of
https://github.com/php/php-src.git
synced 2026-04-26 01:18:19 +02:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
22 lines
356 B
PHP
22 lines
356 B
PHP
--TEST--
|
|
Bug #37176 (iconv_strpos() fails to find a string)
|
|
--EXTENSIONS--
|
|
iconv
|
|
--SKIPIF--
|
|
<?php
|
|
|
|
$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)
|