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