Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41478 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95500 invoked from network); 27 Oct 2008 18:42:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2008 18:42:05 -0000 Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 209.85.217.13 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 209.85.217.13 mail-gx0-f13.google.com Received: from [209.85.217.13] ([209.85.217.13:49447] helo=mail-gx0-f13.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/38-34199-C7B06094 for ; Mon, 27 Oct 2008 13:42:05 -0500 Received: by gxk6 with SMTP id 6so2917111gxk.23 for ; Mon, 27 Oct 2008 11:42:02 -0700 (PDT) Received: by 10.100.134.10 with SMTP id h10mr6185500and.150.1225132922320; Mon, 27 Oct 2008 11:42:02 -0700 (PDT) Received: from andrei-01.prv.corp.outspark.com ([12.51.40.234]) by mx.google.com with ESMTPS id b11sm768647ana.36.2008.10.27.11.42.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 27 Oct 2008 11:42:01 -0700 (PDT) Message-ID: <49060B76.60804@gravitonic.com> Date: Mon, 27 Oct 2008 11:41:58 -0700 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Sean Coates CC: =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= , Alexey Zakhlestin , Ionut Gabriel Stan , Mark van der Velden , Stanislav Malyshev , 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] array_key_exists BC break From: andrei@gravitonic.com (Andrei Zmievski) Sean Coates wrote: > I was hoping someone would revive this thread (-: > > In Habari, we have/had an ArrayObject that we passed to the view > (theme). As far as the theme knows, this is an array (but it has extra > methods if the theme is particularly smart). > > Unfortunately, this breaks in 5.3, because many of the themes use > reset() to get the first element of the array (ArrayObject, but the > theme doesn't necessarily know this). > > This is a real-world BC break, and without allowing ArrayObject to act > like an array, it's nearly useless. We've temporarily "solved" this by > casting the ArrayObject to an array, which is silly. This should be > fixed in 5.3, IMO. > > I discussed this with Johannes a bit, yesterday. I see. If it's a real-world BC break, then it should be fixed. -a