ID: 36129 Updated by: [EMAIL PROTECTED] 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