Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66129 invoked from network); 6 Nov 2008 21:21:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2008 21:21:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 69.16.228.148 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 69.16.228.148 unknown Linux 2.4/2.6 Received: from [69.16.228.148] ([69.16.228.148:34257] helo=host.fmethod.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/79-44653-CDF53194 for ; Thu, 06 Nov 2008 16:21:32 -0500 Received: from [83.228.56.37] (port=2168 helo=pc) by host.fmethod.com with esmtpa (Exim 4.69) (envelope-from ) id 1KyCID-0007XO-AG for internals@lists.php.net; Thu, 06 Nov 2008 15:21:29 -0600 Message-ID: <466F02C209804315A2C82D5E905EAFC2@pc> To: "PHP Internals" References: <4900DB81.4000805@zend.com> <4900E150.1010607@dynom.nl> <49018FC3.90302@gmail.com> <1224854888.19390.89.camel@goldfinger.johannes.nop> <490609A1.7090400@gravitonic.com> <1225199800.878.0.camel@localhost> <3F3445975B55414BB4A214B32E178657@pc> <4A4FE9BC-F000-4AEE-A68C-8EFEA9DCD154@pooteeweet.org> <4910D3E5.4020406@zend.com> <237D5067-10C6-4D25-8CCF-FEF9FE44F6F6@googlemail.com> <1225973406.5465.18.camel@felipe> <49133302.4040701@zend.com> <1226005570.4679.12.camel@goldfinger.johannes.nop> Date: Thu, 6 Nov 2008 23:21:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="koi8-r"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.fmethod.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fmethod.com Subject: Re: [PHP-DEV] array_key_exists BC break From: sv_forums@fmethod.com ("Stan Vassilev | FM") > So allowing passing objects to array stuff using HASH_OF can lead to > unexpected behavior. Dropping the old behavior makes this clear ... but > is bad for stuff like ArrayObject. > > I'm not sure whether we should add special rules for a single class > though .. > > johannes The exception should be made for any class implementing the relevant SPL interfaces, and that's not just ArrayObject. It may be seen as just "one class" but actually all of the "transparent" iterator implementations (for iterating SQL, XML, or whatever data you have) hinge on those interfaces and that class to work as a normal array with the array functions. Regards, Stan Vassilev