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
 [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

Pull Requests

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: Sat Dec 21 13:01:31 2024 UTC