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 #72369 (array_merge() produces references in PHP7) --FILE-- <?php $x = 'xxx';..
Decoded Output download
--TEST--
Bug #72369 (array_merge() produces references in PHP7)
--FILE--
<?php
$x = 'xxx';
$d = ['test' => &$x];
unset($x);
$a = ['test' => 'yyy'];
$a = array_merge($a, $d);
debug_zval_dump($a);
?>
--EXPECTF--
array(1) refcount(%d){
["test"]=>
string(3) "xxx" interned
}
Did this file decode correctly?
Original Code
--TEST--
Bug #72369 (array_merge() produces references in PHP7)
--FILE--
<?php
$x = 'xxx';
$d = ['test' => &$x];
unset($x);
$a = ['test' => 'yyy'];
$a = array_merge($a, $d);
debug_zval_dump($a);
?>
--EXPECTF--
array(1) refcount(%d){
["test"]=>
string(3) "xxx" interned
}
Function Calls
None |
Stats
MD5 | 67374f0d6bc0aa90e8d98d60deaef2b8 |
Eval Count | 0 |
Decode Time | 98 ms |