mirror of
https://github.com/php/php-src.git
synced 2024-10-01 14:56:10 +00:00
16 lines
303 B
PHP
16 lines
303 B
PHP
--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
|