Add a PHP 8.5 compatibility patch to ensure pdo_sqlsrv builds and functions correctly with PHP 8.5.
Activity
mlocati commentedon Dec 28, 2025
Are you referring to a specific patch? Or are you asking me to check why pdo_sqlsrv doesn't compile and patch it?
mlocati commentedon Dec 28, 2025
(in the second case, it's better to ask to the authors of the pdo_sqlsrv extension - see https://github.com/Microsoft/msphpsql)
double-daruma commentedon Dec 30, 2025
Looks like there is no upstream support for PHP 8.5 yet.
Issue asking for support: microsoft/msphpsql#1539
Not yet merged PR that supposedly fixes the build: microsoft/msphpsql#1543
mvorisek commentedon Feb 11, 2026
Microsoft is very slow with releases. Usually 1 - 2 years :(
I tried to utilize #538 to install the ext from local source:
But it fails with
Unable to find the package.xml file in the directory.@mlocati is there any way how to create minimal
package.xmland build the ext from source directly?mlocati commentedon Feb 11, 2026
A Google search resulted in https://pear.php.net/manual/en/pyrus.commands.make.php
mvorisek commentedon Feb 11, 2026
Thanks, I put the answer #558 (comment) in related issue.
temp commentedon Feb 27, 2026
sqlsrv and pdo_sqlsrv 5.13.0 was just released: https://github.com/microsoft/msphpsql/releases/tag/v5.13.0