php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC