Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41733 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17019 invoked from network); 6 Nov 2008 18:10:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2008 18:10:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.116 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.116 us-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [63.205.162.116] ([63.205.162.116:24839] helo=us-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/5F-44653-10333194 for ; Thu, 06 Nov 2008 13:10:09 -0500 Received: from [192.168.16.110] ([192.168.16.110]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 6 Nov 2008 10:10:10 -0800 Message-ID: <49133302.4040701@zend.com> Date: Thu, 06 Nov 2008 10:10:10 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Felipe Pena CC: Geoffrey Sneddon , 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 X-OriginalArrivalTime: 06 Nov 2008 18:10:10.0414 (UTC) FILETIME=[E82A58E0:01C9403A] Subject: Re: [PHP-DEV] array_key_exists BC break From: stas@zend.com (Stanislav Malyshev) Hi! > 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. I think if you use HASH_OF then any object having get_properties should be fine... Is there any reason to restrict it to ArrayAccess? > A list of functions that allow object on current 5.2: > . uksort > . uasort > . usort > . natcasesort > . natsort Interestingly, this list includes no sort(). Is it intentional? Also, we have a bunch of array functions - wouldn't it make sense that all of them behaved the same way towards objects? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com