|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-01 17:34 UTC] storm at mail dot up dot com dot ua
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 22:00:01 2025 UTC |
Description: ------------ Various results empty() for nonexistent key Reproduce code: --------------- $w=array('a'=>'aaaa','b'=>array('dd'=>1,'aa'=>2)); foreach($w as $k=>$v) { if(empty($v['dd'])) echo "{$k}:empty<br>\n"; else echo "{$k}:no empty<br>\n"; } Expected result: ---------------- a:empty<br> b:no empty<br> (PHP 5.03 FreeBsd 4.9) Actual result: -------------- a:no empty<br> b:no empty<br> (PHP 5.05 FreeBsd 5.3)