Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38353 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29194 invoked from network); 18 Jun 2008 15:16:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jun 2008 15:16:24 -0000 Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:40107] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/F3-03518-8FF19584 for ; Wed, 18 Jun 2008 10:47:22 -0400 Received: from [172.28.60.25] (217_74_245_124.kubangsm.ru [217.74.245.124]) by daylessday.org (Postfix) with ESMTP id A14DF6400E4; Wed, 18 Jun 2008 18:47:10 +0400 (MSD) Message-ID: <48591FE8.3010503@daylessday.org> Date: Wed, 18 Jun 2008 18:47:04 +0400 User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Alexey Zakhlestin CC: Pierre Joye , PHP internals , Etienne Kneuss References: <4858EE6E.8050906@daylessday.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] FastArray, great addition From: tony@daylessday.org (Antony Dovgal) On 18.06.2008 16:40, Alexey Zakhlestin wrote: > On 6/18/08, Antony Dovgal wrote: > >> Though I'd like to be able to cast these arrays to PHP's arrays and we need >> to implement get_properties() handler for that. >> If there are no objections, I'll commit my patch when I get back home (30th >> of June). > > 2-way conversion would be perfect ;) There is no way to cast an array to an object of certain class, but it should not be a problem to add a function to convert array to fastarray. Want to make a patch yourself? Should be pretty easy to do, just don't forget to throw an exception on string key. -- Wbr, Antony Dovgal