Skip to content

v3: Upgrade sqlsrv extension#627

Merged
mnapoli merged 1 commit intobrefphp:masterfrom
chrishanline:v3-sqlsrv
Feb 27, 2026
Merged

v3: Upgrade sqlsrv extension#627
mnapoli merged 1 commit intobrefphp:masterfrom
chrishanline:v3-sqlsrv

Conversation

@chrishanline
Copy link
Contributor

Upgrade sqlsrv layer for Bref v3 / Amazon Linux 2023

Summary

The sqlsrv layer was not updated as part of the Bref v3 migration (#625). This PR brings it up to date with Amazon Linux 2023.

Changes

  • Package manager: yum replaced with dnf (AL2023)
  • Microsoft ODBC driver: Upgraded from msodbcsql17 (RHEL 7 repo) to msodbcsql18-18.6.1.1-1 (RHEL 9 repo)
  • unixODBC: Updated version pin from 2.3.1-14.amzn2 to 2.3.9-3.amzn2023.0.3
  • PECL versions: sqlsrv/pdo_sqlsrv 5.12.0 for PHP 8.2/8.3, 5.13.0beta1 for PHP 8.4
  • PHP versions: Set to 8.2, 8.3, 8.4 (PHP 8.5 not yet supported by sqlsrv 5.13.0beta1)
  • Minor improvements: Added -fsSL to curl for better error handling; reordered final COPY statements for clarity

Test plan

  • Build and test pass for PHP 8.2
  • Build and test pass for PHP 8.3
  • Build and test pass for PHP 8.4

- Replace yum with dnf for AL2023 compatibility
- Update Microsoft ODBC repo from RHEL 7 to RHEL 9
- Upgrade from msodbcsql17 to msodbcsql18 (18.6.1.1-1)
- Update unixODBC-devel to AL2023 version (2.3.9-3)
- Use sqlsrv 5.13.0beta1 for PHP 8.4 (5.12.0 for 8.2/8.3)
- Add curl -fsSL for safer repo download
- Set supported PHP versions to 8.2, 8.3, 8.4

Made-with: Cursor
@mnapoli mnapoli merged commit 015237a into brefphp:master Feb 27, 2026
2 checks passed
@cirolosapio
Copy link

@chrishanline FYI: SQLSRV/PDO_SQLSRV 5.13.0 is now officially released (no longer beta)
https://github.com/microsoft/msphpsql/releases/tag/v5.13.0

@chrishanline chrishanline deleted the v3-sqlsrv branch February 27, 2026 18:47
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.

3 participants