Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19745 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93900 invoked by uid 1010); 26 Oct 2005 21:39:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93885 invoked from network); 26 Oct 2005 21:39:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2005 21:39:05 -0000 X-Host-Fingerprint: 70.85.46.36 unknown Received: from ([70.85.46.36:45675] helo=prohost.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 2D/0D-22886-977FF534 for ; Wed, 26 Oct 2005 17:39:05 -0400 Received: (qmail 11058 invoked from network); 26 Oct 2005 21:39:01 -0000 Received: from softdnserror (HELO ?192.168.1.101?) (72.59.8.85) by prohost.org with SMTP; 26 Oct 2005 21:39:01 -0000 Message-ID: <435FF772.70206@prohost.org> Date: Wed, 26 Oct 2005 17:38:58 -0400 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marcus Boerger CC: internals@lists.php.net References: <425333877.20051025002259@marcus-boerger.de> In-Reply-To: <425333877.20051025002259@marcus-boerger.de> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] foreach with null From: ilia@prohost.org (Ilia Alshanetsky) IMHO this is a bad idea, if you really wanted to support NULL in a particular case you, as a developer could do: php -r '$n=NULL; foreach((array)$n as $v);' Making NULL usage transparent where array is expects will lead to difficult to debug code. -1 for removing the warning. Ilia