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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sun Dec 22 12:01:30 2024 UTC