如何在Windows的XAMPP上为PHP安装V8J? [英] How to install V8Js for PHP on XAMPP for Windows?

查看:128
本文介绍了如何在Windows的XAMPP上为PHP安装V8J?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在工作了几天,试图找到一种在Windows XAMPP上安装V8J的简便方法,但没有成功.

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

我已经下载了PHP版本7.2.0 VC15的最新XAMPP版本,并按照此博客文章中的说明进行操作-

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...

我已经从此处下载了dll文件- https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/-使用最新的7.2.1 VC15 x86 ts版本没有成功.

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?

推荐答案

您需要从此处下载最新的php版本,而不是 https://www.apachelounge.com/viewtopic.php?t=6359

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

然后将php_v8js.dllphp\ext移到本地的同一目录中.

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

但是从php的根目录开始,还有5个文件必须移至您的apache\bin

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

通过添加以下行,确保将其包含在php.ini中:

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

extension=php_v8js.dll

然后尝试重新启动apache或通过命令php -m检查,玩得开心.

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

这篇关于如何在Windows的XAMPP上为PHP安装V8J?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆