Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38355 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31320 invoked from network); 18 Jun 2008 15:17:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jun 2008 15:17:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.44.28 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 74.125.44.28 yx-out-2324.google.com Received: from [74.125.44.28] ([74.125.44.28:41661] helo=yx-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/C5-03518-51729584 for ; Wed, 18 Jun 2008 11:17:42 -0400 Received: by yx-out-2324.google.com with SMTP id 3so29284yxj.83 for ; Wed, 18 Jun 2008 08:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=MxP7Cv147ScdIsP8JU70iMfhpO6KDhHQy5aZsHAgr94=; b=h2RZuJPsz9dv0T7VbR8xx6UQaHxlIxM1Yi51/AHHme28TWul9g2vS5cVAOzWFsxhfX SQOfbMxpiZQdm2XEZqdNyie+YkO0FTaBQPJrBdJPyNd4laqkVLTcgbtCD2qwM4uACueC DLiHfUP9FMxJYH0+ADmnIVnYko74kK+XuE5k8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=dJos5gItkTDYps4LmK7c9ZDSoWS6netCORiL4Ii8KBeIaMvomqhl7Y8yboxui7GtEx 0n6W9N3Mv8lXtRepJyGnwkmo2Aty2+a62wwXCSHhPQ+dmWV6fSJyw3HuxdqIjg6qNOEn 8W2l8aHk3xX7Z5zt1pKYLPE4rYfn28aKQwEPI= Received: by 10.150.83.22 with SMTP id g22mr1219881ybb.140.1213802261764; Wed, 18 Jun 2008 08:17:41 -0700 (PDT) Received: by 10.151.83.19 with HTTP; Wed, 18 Jun 2008 08:17:41 -0700 (PDT) Message-ID: Date: Wed, 18 Jun 2008 17:17:41 +0200 Sender: ekneuss@gmail.com To: "Antony Dovgal" Cc: "Alexey Zakhlestin" , "Pierre Joye" , "PHP internals" In-Reply-To: <48591FE8.3010503@daylessday.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4858EE6E.8050906@daylessday.org> <48591FE8.3010503@daylessday.org> X-Google-Sender-Auth: dfd3b3ddae392964 Subject: Re: [PHP-DEV] FastArray, great addition From: colder@php.net ("Etienne Kneuss") Hello, On Wed, Jun 18, 2008 at 4:47 PM, Antony Dovgal wrote: > 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. I'll take care of it (both "conversions" actually) Regards > > -- > Wbr, Antony Dovgal > > -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal