|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75966 Incorrect documentation - says pdo_sqlsrv works on Windows only
Submitted: 2018-02-15 19:39 UTC Modified: 2018-02-16 15:41 UTC
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: php at zootal dot com Assigned:
Status: Verified Package: pdo_sqlsrv (PECL)
PHP Version: 7.2.2 OS: Linux - Slackware 14.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
24 - 13 = ?
Subscribe to this entry?

 [2018-02-15 19:39 UTC] php at zootal dot com
The installation instructions say pdo_sqlsrv only works with Windows. This is not correct. I use it with Linux, have for a while now, and it works great. The documentation might also mention that you can use Unixodbc instead of the Microsoft odbc driver.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-15 22:20 UTC]
-Status: Open +Status: Verified -Package: MSSQL related +Package: pdo_sqlsrv
 [2018-02-15 22:20 UTC]
Not correct *anymore*. Apparently with PHP 7 there's now support for assorted 'nixes since v4.1.6 and Mac since v4.1.7.

And I suggest the docs now link to the Github repo (and blog?) instead of to
 [2018-02-15 23:12 UTC] php at zootal dot com
I thought for sure this also worked with PHP 5.6.x, but don't remember as we switched over from the mssql/freetds route to pdo_sqlsrv at about the same time we moved up to PHP 7.x. I'll try it out tomorrow and report back, I might be wrong...
 [2018-02-16 15:41 UTC] php at zootal dot com
I stand corrected. Apparently it will not compile with PHP 5.6.33, but compiles just fine with 7.2.2 and 7.2.0. Didn't bother trying with the older 7.x releases.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 14:01:24 2020 UTC