|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1918 array_walk doesn't pass value to function?
Submitted: 1999-07-29 04:55 UTC Modified: 1999-07-29 12:52 UTC
From: steveda-php at haagen-dazs dot org Assigned:
Status: Closed Package: Parser error
PHP Version: 4.0b1 OS: FreeBSD 3.2-RELEASE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 - 27 = ?
Subscribe to this entry?

 [1999-07-29 04:55 UTC] steveda-php at haagen-dazs dot org
The script below works fine with Php php-3.0.11 but with 4.0b1 i simply get..

Letter <br>
Letter <br>
Letter <br>

as the output

$letters = array("a","b","c");

                      function thingymajig( $thingy ) {
                         echo "Letter $thingy<br>\n";

                      array_walk( $letters, 'thingymajig' );

Php was configured using..
./configure --with-mysql --with-apache=../apache_1.3.6 --with-gd=/usr/local --enable-track-var


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-29 12:52 UTC] andrey at cvs dot php dot net
This was fixed for 4.0b2.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Nov 28 18:01:26 2023 UTC