summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug52719.phpt
blob: 078c53d2257f738b36819ca7be78352f2b6e3494 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #52719: array_walk_recursive crashes if third param of the function is by reference
--FILE--
<?php
$array = array("hello", array("world"));
$userdata = array();
array_walk_recursive(
    $array,
    function ($value, $key, &$userdata) { },
    $userdata
);
echo "Done";
?>
--EXPECTF--
Done