#31599 [Opn->Fbk]: array_walk_recursive simply does nothing

From: Date: Tue, 18 Jan 2005 15:59:58 +0000
Subject: #31599 [Opn->Fbk]: array_walk_recursive simply does nothing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72395@lists.php.net to get a copy of this message
ID: 31599 Updated by: tony2001@php.net Reported By: vortexx at freemail dot hu -Status: Open +Status: Feedback Bug Type: Arrays related Operating System: Windows 2000 SP4 PHP Version: 5.0.2 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-01-18 16:52:46] vortexx at freemail dot hu Description: ------------ array_walk_recursive simply refuses to do anything whatsoever (even with the example code in the PHP docs!), while array_walk works fine. Please note: I am using PHP 5.0.2 and not PHP5.0.3 because I am unable to us ethe latter due to another bug I reported, still open here: http://bugs.php.net/bug.php?id=31175 Reproduce code: --------------- (taken from http://www.php.net/manual/en/function.array-walk-recursive.php) $sweet = array('a' => 'apple', 'b' => 'banana'); $fruits = array('sweet' => $sweet, 'sour' => 'lemon'); function test_print($item, $key) { echo "$key holds $item\n"; } array_walk_recursive($fruits, 'test_print'); Expected result: ---------------- a holds apple b holds banana sour holds lemon Actual result: -------------- [nothing, just blank!] ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31599&edit=1

« previous php.bugs (#72395) next »