Julia
Julia

Reputation: 174

Driver for sqlsrv 4.0 doesn't apper on phpinfo()

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?

Upvotes: 0

Views: 2113

Answers (1)

ImClarky
ImClarky

Reputation: 1953

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

Upvotes: 4

Related Questions