本文介绍了php 7无法初始化sqlsrv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我搜索整天找到一个解决方案sqlsrv dll在php 7 VC14 x64线程安全,我没有找到一个解决方案。有人解决了这个问题:
I searched all day to find out a solution for sqlsrv dll on php 7 VC14 x64 Thread Safe and i did not found a solution. Does anyone solved this issue :
[04-Oct-2015 19:48:05 UTC] PHP Warning: PHP Startup: pdo_sqlsrv: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20141001
These options need to match
in Unknown on line 0
有我的php7 RC4信息:
There is my php7 RC4 informations :
System Windows NT 6.0 build 6002 (Windows Server 2008 Standard Edition Service Pack 2) AMD64
Build Date Sep 29 2015 17:15:28
Compiler MSVC14 (Visual C++ 2015)
Architecture x64
推荐答案
sqlsrv尚未准备好PHP7但是这不是真的,它自2012年以来没有发布。最后一个版本是从2015年5月起。维护者是微软,PHP7的版本计划在明年初。
sqlsrv isn't ready for PHP7 yet but that's not true it wasn't released since 2012. Last release is from May 2015. Maintainer is Microsoft and version for PHP7 is planned on the beginning of next year.
更新:
可用于PHP,甚至可以在今天(三月2017)的Linux上使用7.1版本。
Driver is available for PHP up to 7.1 version even for Linux today (March 2017).
这篇关于php 7无法初始化sqlsrv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!