Re: FastArray, great addition
| From: | Etienne Kneuss | Date: | Wed, 18 Jun 2008 15:17:41 +0000 |
| Subject: | Re: FastArray, great addition | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38355@lists.php.net to get a copy of this message | ||
Hello,
On Wed, Jun 18, 2008 at 4:47 PM, Antony Dovgal <tony@daylessday.org> wrote:
> On 18.06.2008 16:40, Alexey Zakhlestin wrote:
>>
>> On 6/18/08, Antony Dovgal <tony@daylessday.org> 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