Re: [ANNOUNCEMENT] spidermonkey-0.1.2 (beta) Released.
| From: | Christophe Robin | Date: | Wed, 18 Mar 2009 10:05:43 +0000 |
| Subject: | Re: [ANNOUNCEMENT] spidermonkey-0.1.2 (beta) Released. | ||
| References: | 1 2 | Groups: | php.pecl.dev php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6227@lists.php.net to get a copy of this message | ||
Hello,
I've been looking at your code and it looks like a huge improvement already on the default behavior, I was waiting spidermonkey 1.8 ( which is supposed to be released soon, RCs are already on the way ) to work on huge changes like arrays and closures because 1.8 is supposed to have many changes from 1.7.
As soon as we've a working array prototype, I'll commit it in the SVN, it's good to see someone helping on this. I'm gonna try to work several hours on it today.
Christophe Robin
Marcin Kurzyna wrote:
"PECL Announce" wrote: Hi PECL ;-)The new PECL package spidermonkey-0.1.2 (beta) has been released atI've been playing around with spidermonkey extension for the last 48h doing some extensive testing (and although it's nice it's also terribly unstable and unpredictable; .phpt will follow later this week for both inconsistencies and crashes) there is however one problem i've tried to fix at hand - it's the missing array type support. passing arrays as stdClass is inconvinient as $stdClass->0 doesn't work - one has to use ugly $stdClass->{"0"} to access properties. also array cast is usless because of PHP dynamic types: $array[0] == $array['0'] so one can't access $array[(string)"0"] which is a real string index after cast. back to the fixing point though. i've started a patch against svn rev. 50, it's available at: http://crystalpoint.pl/~m.kurzyna/php/spidermonkey-arrays.diff it does two things: 1) change jsval_to_zval() from many if/elses to switch structure withdelagated converting functions2) adds jsobject_to_zval() which is a copy of previous algorythm just movedto a function3) adds *NON WORKING** jsarray_to_zval() which i've tried to implement it works... sort of. for some reason i can't find it creates recursive arrays to themselves in a number equal to number of JS level array elements. any help would be appreciated regarding this (i'm offline whole monday but i can get back to it starting tuesday evening). TIA, marcin kurzyna