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
what would it take to enable this to be built as a shared extension?
Posted by: Luke | Jan 11, 2011 at 00:42
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.
Posted by: HOSHINO Takashi | Jan 11, 2011 at 18:12
How can I install Spidermonkey PHP Extension on Windows PHP? Thanks in advance.
Posted by: Haider | Aug 21, 2011 at 15:32