From: [EMAIL PROTECTED] 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
