Repository navigation
Update SQL Server drivers to 5.14.0 and add them to PHP 8.6 - #276
Merged
Merged
Conversation
sqlsrv and pdo_sqlsrv 5.14.0 add PHP 8.6 support, so the PHP 8.6 images include them again, and PHP 8.4 and 8.5 move to the same release. 5.14.0 supports PHP 8.4 and newer only: PHP 8.3 keeps 5.13.3 and PHP 8.2 keeps 5.12.0. Microsoft no longer publishes to PECL. install-extensions.sh builds the checksum-verified archives from the GitHub release, which keep their sources at the archive root, through a new install_release helper.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The PHP 8.6 images ship without the SQL Server extensions (
sqlsrvandpdo_sqlsrv), because 5.13.3 does not build on PHP 8.6. PHP 8.4 and 8.5 images use 5.13.3 while a newer release is available.Cause
Microsoft released 5.14.0 on 2026-11-20 with PHP 8.6 support, and stopped publishing new releases to PECL, where the images took the drivers from. 5.14.0 also drops support for PHP 8.3 and older.
Solution
PHP 8.4, 8.5 and 8.6 images use SQL Server drivers 5.14.0, so PHP 8.6 includes them again. PHP 8.3 keeps 5.13.3 and PHP 8.2 keeps 5.12.0, the last releases for those versions. The drivers are built from Microsoft's GitHub release archives, verified by checksum.
5.14.0 adds opt-in UTF-8
VARCHARhandling and fixes several bugs, including slow PDO fetches with many bound parameters. One change can be visible to applications: malformed SQL command text is now rejected with the driver's encoding error instead of being converted with replacement characters. See the 5.14.0 release notes.Changes
8/install-extensions.sh: a newinstall_release/release_forpair builds checksum-verified release archives that keep their sources at the archive root; PHP 8.4+ install 5.14.0 with it, PHP 8.3 keeps 5.13.3 from PECL, andsqlsrv/pdo_sqlsrvleave the PHP 8.6 unavailable list.sqlsrv/pdo_sqlsrvinphp_modules/8.6.Part of #274.
Validation
phpizeonphp:8.6.0-fpm-alpineandwodby/php:8.5-r18; both load and report 5.14.0, and PDO lists thesqlsrvdriver.