« About This Blog | Main | FastCGI development kit patches to support WIN64 with several fixes »

Jan 20, 2010

Spidermonkey PHP Extension patches

There are three patches to enhance or fix bugs of Spidermonkey PHP Extension.
This patches are for spidermonkey-0.1.3.tgz from the official web site:
http://pecl.php.net/package/spidermonkey

The patches must be applied in the following order.

(1) spidermonkey-windows.patch
Support windows build of the extension.
Specify --with-spidermonkey=${SPIDERMONKEY_INSTALLED_DIRECTORY} as configure option.
Currently shared library build is not supported.

(2) spidermonkey-line-number.patch
Print not only line number but also specified string text when an error occurs in interpreting javascript code. Specify a prefer string to the second argument of evaluateScript() function. It will help your debug javascript code in PHP. Of course it can be omitted.

(3) spidermonkey-empty-string.patch
This fixes PECL Bug #16876.

---
HOSHINO Takashi

TrackBack

TrackBack URL for this entry:
http://www.typepad.jp/t/trackback/404050/22970033

Listed below are links to weblogs that reference Spidermonkey PHP Extension patches:

Comments

what would it take to enable this to be built as a shared extension?

Thank you for your comment. I could not find any document to create shared extension for Windows and we did not require it at that time. Please hack it by yourself. Thank you.

How can I install Spidermonkey PHP Extension on Windows PHP? Thanks in advance.

Post a comment