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 #70808 (array_merge_recursive corrupts memory of unset items) --FILE-- <?php ..
Decoded Output download
--TEST--
Bug #70808 (array_merge_recursive corrupts memory of unset items)
--FILE--
<?php
$arr1 = array("key" => array(0, 1));
$arr2 = array("key" => array(2));
unset($arr1["key"][1]);
$result = array_merge_recursive($arr1, $arr2);
print_r($result);
?>
--EXPECT--
Array
(
[key] => Array
(
[0] => 0
[2] => 2
)
)
Did this file decode correctly?
Original Code
--TEST--
Bug #70808 (array_merge_recursive corrupts memory of unset items)
--FILE--
<?php
$arr1 = array("key" => array(0, 1));
$arr2 = array("key" => array(2));
unset($arr1["key"][1]);
$result = array_merge_recursive($arr1, $arr2);
print_r($result);
?>
--EXPECT--
Array
(
[key] => Array
(
[0] => 0
[2] => 2
)
)
Function Calls
None |
Stats
MD5 | 2399d89be3b3aec42fb0aaae5f48b1a7 |
Eval Count | 0 |
Decode Time | 111 ms |