|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-20 23:04 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 08:00:01 2025 UTC |
Description: ------------ When passing empty arrays to a function using a parameter that defaults to null, the default value is being passed instead of the array. Reproduce code: --------------- function test($value=null) { if($value == null) { print "null"; } else { print "not null"; } } test(array()); Expected result: ---------------- "not null" Actual result: -------------- "null"