Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19759 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70515 invoked by uid 1010); 27 Oct 2005 10:48:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70499 invoked from network); 27 Oct 2005 10:47:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2005 10:47:59 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:53409] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 98/AB-22886-E50B0634 for ; Thu, 27 Oct 2005 06:47:58 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j9RAls6T024103; Thu, 27 Oct 2005 12:47:54 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j9RAlZtb024042; Thu, 27 Oct 2005 12:47:37 +0200 Date: Thu, 27 Oct 2005 12:47:35 +0200 (CEST) X-X-Sender: derick@localhost To: Hannes Magnusson cc: internals@lists.php.net In-Reply-To: <7f3ed2c30510270258i6489024cm4e2293f2c8c891b5@mail.gmail.com> Message-ID: References: <425333877.20051025002259@marcus-boerger.de> <435FF772.70206@prohost.org> <7f3ed2c30510270258i6489024cm4e2293f2c8c891b5@mail.gmail.com> X-Face: "L'&?Ah3MYF@FB4hU'XhNhLB]222(Lbr2Y@F:GE[OO;"F5p>qtFBl|yVVA&D{A(g3[C}mG:199P+5C'v.M/u@Z\![0b:Mv.[l6[uWl' MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] foreach with null From: derick@php.net (Derick Rethans) On Thu, 27 Oct 2005, Hannes Magnusson wrote: > On 10/27/05, Derick Rethans wrote: > > > > On Wed, 26 Oct 2005, Ilia Alshanetsky wrote: > > > > > 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. > > > > Yes, I agree, we should not remove this warning. > > +1 on *not* removing the warning. I can't see any reson why it should be > removed. Erm, that's what I meant. +1 with *not* is the same as -1 without.... Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org