Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41903 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12999 invoked from network); 13 Nov 2008 18:36:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Nov 2008 18:36:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=sean@caedmon.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sean@caedmon.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain caedmon.net from 64.15.79.181 cause and error) X-PHP-List-Original-Sender: sean@caedmon.net X-Host-Fingerprint: 64.15.79.181 iconoclast.caedmon.net Linux 2.5 (sometimes 2.4) (4) Received: from [64.15.79.181] ([64.15.79.181:37206] helo=iconoclast.caedmon.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/4D-07308-1A37C194 for ; Thu, 13 Nov 2008 13:36:19 -0500 Received: from localhost (localhost [127.0.0.1]) by iconoclast.caedmon.net (Postfix) with ESMTP id 3E7AE1E0014; Thu, 13 Nov 2008 13:36:10 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at iconoclast.caedmon.net Received: from iconoclast.caedmon.net ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ytw6BBx-s9Mh; Thu, 13 Nov 2008 13:36:03 -0500 (EST) Received: from [10.8.0.2] (sarcasm.vpn [10.8.0.2]) by iconoclast.caedmon.net (Postfix) with ESMTP id 15BB61E0019; Thu, 13 Nov 2008 13:36:03 -0500 (EST) Cc: Lukas Kahwe Smith , Felipe Pena , Geoffrey Sneddon , PHP Internals Message-ID: <0FECD85E-E9C0-4F7E-8D25-CB6F9532AC5F@caedmon.net> To: Stanislav Malyshev In-Reply-To: <491C6FAF.104@zend.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Thu, 13 Nov 2008 13:36:06 -0500 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> <491C6FAF.104@zend.com> X-Mailer: Apple Mail (2.929.2) Subject: Re: [PHP-DEV] array_key_exists BC break From: sean@caedmon.net (Sean Coates) >> Also cant we some how automate the BC break testing for this (aka >> scan all functions that accept an array with the old API in 5.2, >> pass it an ArrayObject instance and see what happens and compare >> that to 5.3)? > > Yes we can ;) That should be not hard to do by looking at ones > having 'a' in parameters in 5.3 and comparing how they react to > arrays in 5.2 and in 5.3. Some of them, btw, might accept objects > even though it doesn't make much sense - as above. This isn't the type of thing that I would naturally expect to find broken in a .x release, so if we can preserve the old behaviour with little to no penalty, I suggest we go for that. S