|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-07 18:42 UTC] sniper@php.net
[2001-03-08 20:17 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 00:00:01 2025 UTC |
This crashes: function &foo() { while (list($key, $name) = each($arr)); return($ret); } ------ This works: function &foo() { if (is_array($arr)) while (list($key, $name) = each($arr)); return($ret); } ------ This works: function &foo() { while (list($key, $name) = each($arr)); return(is_array($ret) ? $ret : false); } I know returning a NULL value as refernce is nonsense but it shouldn't crash, right?