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 #35163.2 (Array elements can lose references) --FILE-- <?php $a = array(1); $..
Decoded Output download
--TEST--
Bug #35163.2 (Array elements can lose references)
--FILE--
<?php
$a = array(1);
$b = 'a';
${$b}[] =& $$b;
${$b}[] =& $$b;
${$b}[0] = 2;
var_dump($a);
$a[0] = null;
$a = null;
?>
--EXPECT--
array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
Did this file decode correctly?
Original Code
--TEST--
Bug #35163.2 (Array elements can lose references)
--FILE--
<?php
$a = array(1);
$b = 'a';
${$b}[] =& $$b;
${$b}[] =& $$b;
${$b}[0] = 2;
var_dump($a);
$a[0] = null;
$a = null;
?>
--EXPECT--
array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
Function Calls
None |
Stats
MD5 | 7429482c8bc7e9f4bf28652901ae06d7 |
Eval Count | 0 |
Decode Time | 110 ms |