r/PHP • • 4d 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_sqlsrv

Full 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

40 Upvotes

18 comments sorted by

6

u/vhuk 4d 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.

8

u/dlevy-msft 4d ago

I have to be careful here because supported is a special word, it was always supported. There was a transition in ownership from another team to ours that completed early in 2025. It took us a bit to get everything onboarded with PHP and mssql-django being the last caught up. We got those done by SQLCon Atlanta this past March. The intent is to stay current now.

3

u/HenkPoley 3d ago edited 3d ago

Just tracking https://github.com/microsoft/msphpsql:

2024-01-22 - “Fix invalid precision error (#1497)”, the last real code fix
2024-01-31 - SQLSRV 5.12.0 released

2024-11-21 - PHP 8.4 released

[.. 15 months ..]

2026-01-14 - Work resumes with “Modernize CI Pipeline: PHP 8.4, ODBC 18, SQL Server 2022 (#1549)”, followed by PHP 8.4 test fixes
2026-02-17 - SQLSRV 5.13.0 released

3

u/dlevy-msft 3d ago

That tracks. The part you can't see is the Azure DevOps mirror that we have internally. It's how we do things like security patches without telegraphing the vulnerabilities before they are ready for release. Getting all that set up was time consuming.

2

u/spooCQ 4d ago

Microsoft doesn’t offer precompiled PHP for IIS anymore - this is an extension to use MS SQL with PHP.

1

u/dlevy-msft 3d ago

IIS is a bit out of my lane, but I could try to track someone down. The setup doesn't look too bad these days: PHP: Installation with IIS for Windows - Manual. What was the problem it solved for you?

4

u/CensorVictim 3d ago

Why was support for 8.3 dropped already? It has security support for another year.

3

u/dlevy-msft 3d 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 3d 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 3d 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

u/CensorVictim 3d ago

and I appreciate the curiosity

2

u/meoverhere 3d ago

Any chance there will be an ARM build?

1

u/dlevy-msft 3d ago

There is one for MacOS. Are you looking for Windows or Linux?

2

u/meoverhere 3d ago

I’m looking for something we can build in a docker image, so Linux but on a MacOS host means Arm64

2

u/akrabat 3d ago

Thank you! Fantastic news 🎉

1

u/compubomb 3d ago

Wow, what made them decide php was worthy of their support?

0

u/ScuzzyAyanami 3d ago

I guess now it's just tradition?

-7

u/illmatix 3d ago

please stop. it's not supposed to live there.