#22195 [NEW]: array_reduce of single-element array returns nothing

From: Date: Thu, 13 Feb 2003 00:38:09 +0000
Subject: #22195 [NEW]: array_reduce of single-element array returns nothing
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32928@lists.php.net to get a copy of this message
From: joergland@debian.org Operating system: Debian GNU/Linux PHP version: 4.2.3 PHP Bug Type: Arrays related Bug description: array_reduce of single-element array returns nothing 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 bug report at http://bugs.php.net/?id=22195&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22195&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22195&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22195&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22195&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22195&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22195&r=support Expected behavior: http://bugs.php.net/fix.php?id=22195&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22195&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22195&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22195&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22195&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22195&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22195&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22195&r=gnused

« previous php.bugs (#32928) next »