How to install V8Js for PHP on XAMPP for Windows?

非 Y 不嫁゛ 提交于 2019-12-18 21:16:36

问题


Been working for days now trying to find an easy way to install V8Js on XAMPP for windows, yet with no success.

I have downloaded the latest XAMPP version with PHP version 7.2.0 VC15, and followed the instructions in this blog post - https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/ - but to no avail. I don't see a mention to V8Js in the phpinfo, and when I try to use it I get an ERROR

Error: Class 'V8Js' not found in...

I have downloaded the dll files from here - https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/ - and used the latest 7.2.1 VC15 x86 ts version with no success.

Can anyone offer some help?


回答1:


You need to download lasted php version from here instead https://www.apachelounge.com/viewtopic.php?t=6359

Then move a php_v8js.dll from php\ext into same directory on your local.

But with 5 files additional from root directory of php have to move into your apache\bin instead

  • icui18n.dll
  • icuuc.dll
  • v8.dll
  • v8_libbase.dll
  • v8_libplatform.dll

Be sure to have it in your php.ini, by adding the following line:

extension=php_v8js.dll

Then try to restart apache or check by command php -m, have fun.



来源:https://stackoverflow.com/questions/48203147/how-to-install-v8js-for-php-on-xampp-for-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!