Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #37176 (iconv_strpos() fails to find a string) --EXTENSIONS-- iconv --SKIPIF-..
Decoded Output download
--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)
Did this file decode correctly?
Original Code
--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)
Function Calls
iconv_strpos | 1 |
Stats
MD5 | c3db62e82d09e98962ede6f95b012d25 |
Eval Count | 0 |
Decode Time | 95 ms |