Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41367 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87716 invoked from network); 24 Oct 2008 13:28:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2008 13:28:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=Johannes.Schlueter@Sun.COM; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 192.18.6.21 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 192.18.6.21 gmp-eb-inf-1.sun.com Solaris 10 (beta) Received: from [192.18.6.21] ([192.18.6.21:40332] helo=gmp-eb-inf-1.sun.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/A5-01351-17DC1094 for ; Fri, 24 Oct 2008 09:28:25 -0400 Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11]) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m9ODSEvZ012044 for ; Fri, 24 Oct 2008 13:28:14 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K9800301VW9ON00@fe-emea-10.sun.com> (original mail from johannes@php.net) for internals@lists.php.net; Fri, 24 Oct 2008 14:28:14 +0100 (BST) Received: from [192.168.1.101] ([62.216.210.11]) by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K9800C9CW3163C0@fe-emea-10.sun.com>; Fri, 24 Oct 2008 14:28:14 +0100 (BST) Date: Fri, 24 Oct 2008 15:28:08 +0200 In-reply-to: Sender: Johannes.Schlueter@Sun.COM To: Alexey Zakhlestin Cc: Ionut Gabriel Stan , Mark van der Velden , Stanislav Malyshev , PHP Internals Message-ID: <1224854888.19390.89.camel@goldfinger.johannes.nop> MIME-version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-type: text/plain Content-transfer-encoding: 7BIT References: <4900DB81.4000805@zend.com> <4900E150.1010607@dynom.nl> <49018FC3.90302@gmail.com> Subject: Re: [PHP-DEV] array_key_exists BC break From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Fri, 2008-10-24 at 13:15 +0400, Alexey Zakhlestin wrote: > On Fri, Oct 24, 2008 at 1:05 PM, Ionut Gabriel Stan > wrote: > > But wouldn't be useful to at least accept objects implementing ArrayAccess? > > sounds like a good idea to me nope that would mean that some scripts might work different between 5.2 and 5.3, now one gets an error. consider such a script: In <= 5.2 it will return the value of $o->prop, in 5.3 it would call the offsetGet() method. I prefer an error, if many people want the old behavior that's fine to me, but don't change it. btw. this also affects quite a few other functions: next/current/key/... at least ... and maybe more after using the "new" parameter parsing API. johannes