问题
I need help with Microsoft driver for mssql 4.0. I use php 7.1
, win'2012 x64
, mssql 2008 R2
and installed odbc driver 13
as it is described in documentation and copyed all dlls in ext
folder. In php.ini
I added:
extension_dir = "c:\inetpub\php\ext"
extension=php_sqlsrv_7_nts_x64.dll
Restarted IIS.
And still after calling phpinfo()
I can't see sqlsrv.
Maybe I missed something in php.ini?
回答1:
After looking through some of the issues posted on GitHub it appears that the drivers supplied from the Microsoft website are currently incompatible with PHP 7.1, despite the System Requirements on the page claiming:
Version 4.0 supports PHP 7.0+ on Windows and Linux
The latest binaries for the sqlsrv and pdo_sqlsrv drivers can be found through the official GitHub repositiory with the latest* being v4.1.5 (released 19 Jan 2017). Download the .zip related to your PHP version.
* Latest at time of posting
来源:https://stackoverflow.com/questions/41873939/driver-for-sqlsrv-4-0-doesnt-apper-on-phpinfo