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-- 15Warning: {closure}(): Argument #3 ($userdata) must be passed by reference, value given in %s on line %d 16 17Warning: {closure}(): Argument #3 ($userdata) must be passed by reference, value given in %s on line %d 18Done 19