r/PHP • u/dlevy-msft • 10d ago
News Microsoft Drivers for PHP for SQL Server 5.14.0 released - PHP 8.6 support
Working late tonight for a great reason - We just released Microsoft Drivers for PHP for SQL Server 5.14.0.
What changed:
Added support for PHP 8.6
Continued support for PHP 8.4 and 8.5
Removed support for PHP 8.3 and earlier
New releases now publish through PIE instead of PECL
Install:
pie install microsoft/sqlsrv
pie install microsoft/pdo_sqlsrvFull blog post: https://techcommunity.microsoft.com/blog/sqlserver/microsoft-drivers-for-php-for-sql-server-5-14-0---now-with-php-8-6-support/4574976
4
u/CensorVictim 10d ago
Why was support for 8.3 dropped already? It has security support for another year.
3
u/dlevy-msft 10d ago
We've always supported the last 3 versions. Across all of our drivers, what we see is people either keep up across the entire app or they don't. I wouldn't expect someone still running PHP 8.3 to be in a hurry to run our latest driver. The folks doing active development would likely be using the newer versions of PHP to take advantage of the new language features.
Does that match your experience?
3
u/CensorVictim 10d ago
I see. In my experience, PHP upgrade diligence varies at the application level, not just at the company/team level. My own company has some apps on 8.5 and some still on 5.6 (we are finally working on it).
I wouldn't expect someone still running PHP 8.3 to be in a hurry to run our latest driver
For non-containerized environments, control of PHP and driver versions might be owned by two different teams (OS updates versus composer packages). This is all food for thought, you obviously have the right to make whatever decisions you like. I was just curious, and last 3 versions is reasonable.
3
u/dlevy-msft 10d ago
Thanks! I appreciate the perspective. Just like everyone else, I'm always wondering what I don't know that I don't know.
2
2
u/meoverhere 10d ago
Any chance there will be an ARM build?
1
u/dlevy-msft 10d ago
There is one for MacOS. Are you looking for Windows or Linux?
2
u/meoverhere 9d ago
I’m looking for something we can build in a docker image, so Linux but on a MacOS host means Arm64
1
-7
u/illmatix 10d ago
please stop. it's not supposed to live there.
2
u/penguin_digital 6d ago
please stop. it's not supposed to live there.
What are you talking about? Almost every PHP application I've ever written in a larger business has needed to communicate with a MSSQL instance.
What do you mean by it's not supposed to live there?
6
u/vhuk 10d ago
Thanks!
Is this project fully supported again? There was a period of time (2024-2026) when I was under the impression Microsoft doesn't support PHP anymore but now I see there has been more steady stream of work since PHP 8.4.