php.net |  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
Votes:2
Avg. Score:3.5 ± 1.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at zootal dot com
New email:
PHP Version: OS:

 

 [2018-02-15 19:39 UTC] php at zootal dot com
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-15 22:20 UTC] requinix@php.net
-Status: Open +Status: Verified -Package: MSSQL related +Package: pdo_sqlsrv
 [2018-02-15 22:20 UTC] requinix@php.net
Not correct *anymore*. Apparently with PHP 7 there's now support for assorted 'nixes since v4.1.6 and Mac since v4.1.7.
http://blogs.msdn.com/b/sqlphp/
https://github.com/Microsoft/msphpsql

And I suggest the docs now link to the Github repo (and blog?) instead of to microsoft.com.
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC