#36129 [Opn->Bgs]: array_reduce() returns unexpected NULL

From: Date: Mon, 23 Jan 2006 08:54:20 +0000
Subject: #36129 [Opn->Bgs]: array_reduce() returns unexpected NULL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92372@lists.php.net to get a copy of this message
ID: 36129 Updated by: tony2001@php.net Reported By: white_phoenix at ru dot ru -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: all PHP Version: 5.1.2 New Comment: Ever heard about error_reporting(E_ALL)? No bug here, this is expected. Previous Comments: ------------------------------------------------------------------------ [2006-01-23 02:59:02] white_phoenix at ru dot ru Description: ------------ array_reduce() returns unexpected NULL (PHP 5.0-5.1.2 only) Reproduce code: --------------- $array = array('value'); $result = array_reduce($array,'array_merge'); var_dump($result); Expected result: ---------------- Works on PHP 4.4.0: array(1) { [0]=> string(5) "value" } Actual result: -------------- Tested on PHP 5.1.2: NULL ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36129&edit=1

« previous php.bugs (#92372) next »