#22195 [Bgs]: array_reduce of single-element array returns nothing
| From: | joergland at debian dot org | Date: | Thu, 13 Feb 2003 00:45:29 +0000 |
| Subject: | #22195 [Bgs]: array_reduce of single-element array returns nothing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32931@lists.php.net to get a copy of this message | ||
ID: 22195
User updated by: joergland@debian.org
Reported By: joergland@debian.org
Status: Bogus
Bug Type: Arrays related
Operating System: Debian GNU/Linux
PHP Version: 4.2.3
New Comment:
sorry, my fault, i reported to fast ;-/
that's actually not a bug in PHP but in my brain
Joerg
Previous Comments:
------------------------------------------------------------------------
[2003-02-12 18:40:37] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
This works fine with PHP 4.3.1-dev, propably works
with PHP 4.3.0 too.
------------------------------------------------------------------------
[2003-02-12 18:38:09] joergland@debian.org
sample code:
$foo = array('a');
function r($a, $b) { return $a . $b; }
$str = array_reduce($foo, 'r');
$str is empty after execution, should be 'a'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22195&edit=1