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 #71190 (substr_replace converts integers in original $search array to strings..
Decoded Output download
--TEST--
Bug #71190 (substr_replace converts integers in original $search array to strings)
--FILE--
<?php
$b = [0, 1, 2];
var_dump($b);
substr_replace("test", $b, "1");
var_dump($b);
?>
--EXPECT--
array(3) {
[0]=>
int(0)
[1]=>
int(1)
[2]=>
int(2)
}
array(3) {
[0]=>
int(0)
[1]=>
int(1)
[2]=>
int(2)
}
Did this file decode correctly?
Original Code
--TEST--
Bug #71190 (substr_replace converts integers in original $search array to strings)
--FILE--
<?php
$b = [0, 1, 2];
var_dump($b);
substr_replace("test", $b, "1");
var_dump($b);
?>
--EXPECT--
array(3) {
[0]=>
int(0)
[1]=>
int(1)
[2]=>
int(2)
}
array(3) {
[0]=>
int(0)
[1]=>
int(1)
[2]=>
int(2)
}
Function Calls
None |
Stats
MD5 | 4ad780b0368173601ed52f7858ea086d |
Eval Count | 0 |
Decode Time | 88 ms |