Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19774 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54406 invoked by uid 1010); 28 Oct 2005 05:09:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54390 invoked from network); 28 Oct 2005 05:09:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Oct 2005 05:09:30 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:55533] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F4/84-22886-882B1634 for ; Fri, 28 Oct 2005 01:09:29 -0400 Received: (qmail 12160 invoked from network); 28 Oct 2005 05:09:24 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 28 Oct 2005 05:09:24 -0000 Message-ID: <6.2.3.4.2.20051027220717.03109eb0@localhost> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Thu, 27 Oct 2005 22:09:16 -0700 To: Jochem Maas ,Jani Taskinen Cc: Ilia Alshanetsky ,Marcus Boerger , internals@lists.php.net In-Reply-To: <4360B0D5.5080202@iamjochem.com> References: <425333877.20051025002259@marcus-boerger.de> <435FF772.70206@prohost.org> <4360057C.9010705@iamjochem.com> <4360B0D5.5080202@iamjochem.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] foreach with null From: andi@zend.com (Andi Gutmans) I think we should be keeping the warning (i.e. -1 for the change). I don't see a reason why overloaded objects can't expose an API of an empty array() instead of changing this behavior to fit the implementation. But even if it weren't so, there has to be a good reason to change the general case. Andi