|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: steveda-php at haagen-dazs dot org
New email:
PHP Version: OS:


 [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: Sun Dec 03 00:01:27 2023 UTC