Skip to content

Update SQL Server drivers to 5.14.0 and add them to PHP 8.6 - #276

Merged
csandanov merged 1 commit into
masterfrom
chore/sqlsrv-5.14.0
Nov 21, 2026
Merged

csandanov merged 1 commit into
masterfrom
chore/sqlsrv-5.14.0

Conversation

@csandanov

Copy link
Copy Markdown
Member

Problem

The PHP 8.6 images ship without the SQL Server extensions (sqlsrv and pdo_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 VARCHAR handling 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 new install_release/release_for pair 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, and sqlsrv/pdo_sqlsrv leave the PHP 8.6 unavailable list.
  • Tests: expected driver versions per PHP version, and sqlsrv/pdo_sqlsrv in php_modules/8.6.
  • README: driver versions in the extension table and the build notes.

Part of #274.

Validation

  • Built both 5.14.0 archives with phpize on php:8.6.0-fpm-alpine and wodby/php:8.5-r18; both load and report 5.14.0, and PDO lists the sqlsrv driver.
  • CI builds every PHP version and variant and runs the SQL Server functional tests against a SQL Server container on amd64.

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.
@csandanov
csandanov merged commit ca7834d into master Nov 21, 2026
44 checks passed
@csandanov
csandanov deleted the chore/sqlsrv-5.14.0 branch November 21, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant