Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41981 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74138 invoked from network); 17 Nov 2008 21:44:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Nov 2008 21:44:25 -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.200.174 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 209.85.200.174 wf-out-1314.google.com Received: from [209.85.200.174] ([209.85.200.174:12981] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/54-08914-6B5E1294 for ; Mon, 17 Nov 2008 16:44:24 -0500 Received: by wf-out-1314.google.com with SMTP id 26so2643622wfd.26 for ; Mon, 17 Nov 2008 13:44:20 -0800 (PST) Received: by 10.143.2.7 with SMTP id e7mr1299165wfi.246.1226958260352; Mon, 17 Nov 2008 13:44:20 -0800 (PST) Received: from Macintosh-18.local ([131.107.204.126]) by mx.google.com with ESMTPS id 24sm6269933wfc.22.2008.11.17.13.44.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 17 Nov 2008 13:44:18 -0800 (PST) Message-ID: <4921E5AE.9030704@gravitonic.com> Date: Mon, 17 Nov 2008 13:44:14 -0800 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Felipe Pena CC: Geoffrey Sneddon , Stanislav Malyshev , Lukas Kahwe Smith , 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> In-Reply-To: <1225973406.5465.18.camel@felipe> 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) Felipe Pena wrote: > So as suggested and wished, here is a patch that add a modifier '%' to > 'a' in parameter parsing API, where it allows object that implements > ArrayAccess to be accept. Although it doesn't invoke any their methods, > i.e. just how it works nowdays. > > A list of functions that allow object on current 5.2: > . end > . prev > . next > . reset > . current > . key > . array_key_exists > . array_unique > . array_flip > . array_walk_recursive > . array_walk > . uksort > . uasort > . usort > . natcasesort > . natsort > > Hence, I added such modifier to this functions in the patch. > > 5.3: http://felipe.ath.cx/diff/arg_arrayaccess.diff It should probably be '#', because that modifier means 'alternate representation'. -Andrei