Re: FastArray, great addition
| From: | Antony Dovgal | Date: | Wed, 18 Jun 2008 14:47:04 +0000 |
| Subject: | Re: FastArray, great addition | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38353@lists.php.net to get a copy of this message | ||
On 18.06.2008 16:40, Alexey Zakhlestin wrote:
On 6/18/08, Antony Dovgal <tony@daylessday.org> wrote: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 DovgalThough 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 ;)