首页 > 解决方案 > 更改 PHP 编译

问题描述

我尝试在我的 xampp 服务器上安装 V8JS,但发生错误。我搜索了VC11没有找到扩展版本

Warning: PHP Startup: v8js: Unable to initialize module
Module compiled with build ID=API20131226,TS,VC12
PHP    compiled with build ID=API20131226,TS,VC11
These options need to match
 in Unknown on line 0

如何让我的 PHP 编译成 VC12?

我当前的设置

System  Windows NT DESKTOP-HPGI9H9 6.2 build 9200 (Windows 8 Home Premium Edition) i586
Build Date  Oct 29 2015 12:34:05
Compiler    MSVC11 (Visual C++ 2012)
Architecture    x86
Apache Version  Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15
XAMPP v3.2.2 

标签: phpwindowsapachexampp

解决方案


这解决了问题。它只是用 Xampp 文件替换这些文件: https ://github.com/maryo/php-5.6.13-win32-VC12


推荐阅读