msphpsql icon indicating copy to clipboard operation
msphpsql copied to clipboard

PHP 8.4 support

Open SharkMachine opened this issue 1 year ago β€’ 93 comments

The last PHP 8.4 beta has been released before the upcoming release candidates. The planned release date is Nov 21 2024. Is there a plan for adding PHP 8.4 support?

I think a lot of people will be happy if the first beta for the driver will be out in October like mentioned in https://github.com/microsoft/msphpsql/issues/1477#issuecomment-1848002475 :)

SharkMachine avatar Sep 21 '24 08:09 SharkMachine

The current version already builds against PHP 8.4 :). I'll test it next week.

SharkMachine avatar Sep 21 '24 09:09 SharkMachine

Hopefully a beta driver for PHP 8.4 can be released soon - I'd like to be able to test our apps with the PHP 8.4 release candidate.

theodorejb avatar Oct 02 '24 22:10 theodorejb

Hopefully a beta driver for PHP 8.4 can be released soon - I'd like to be able to test our apps with the PHP 8.4 release candidate.

You can build the current release version against PHP 8.4. I tried to test it properly last week, but there are a couple of packages missing from OndΕ™ej SurΓ½'s PPA that the internal Docker image I manage needs.

Edit: I've only tested building pdo_sqlsrv.

SharkMachine avatar Oct 03 '24 04:10 SharkMachine

The stable release of PHP 8.4 is in just two days, on November 21st. Will there be an updated SQLSRV driver to officially support it?

theodorejb avatar Nov 19 '24 15:11 theodorejb

I was able to test it now. 5.12.0 (pdo_sqlsrv) seems to be working with PHP 8.4.

Edit: I don't recommend using it in a production environment before official support has been announced.

SharkMachine avatar Nov 28 '24 16:11 SharkMachine

How long do we have to wait?

piotrekz5 avatar Dec 11 '24 20:12 piotrekz5

Yes this is, please provide ETD, this is our last ext we need to migrate for testing and Production, i hope before Happy new year??? ;)

jansor avatar Dec 12 '24 14:12 jansor

I was able to test it now. 5.12.0 (pdo_sqlsrv) seems to be working with PHP 8.4.

Edit: I don't recommend using it in a production environment before official support has been announced.

While waiting for official support, the current version 5.12.0 is also working for me, compiled with 8.4.1-3 (November 25, 2024) on Ubuntu 24.04πŸ‘

camiant avatar Dec 12 '24 15:12 camiant

While waiting for official support, the current version 5.12.0 is also working for me, compiled with 8.4.1-3 (November 25, 2024) on Ubuntu 24.04πŸ‘

Yeah under Linux it seems to be working, but small parts are still working under Windows atm, and that drivers does block :(

I hope soon on beta release or new version release, its become headache to manage different project on different PHP version....

jansor avatar Jan 04 '25 11:01 jansor

Any update on this? Not able to get the driver working on Windows for php 8.4.1 with the error "PHP Warning: PHP Startup: pdo_sqlsrv: Unable to initialize module"

shokanshi avatar Jan 09 '25 01:01 shokanshi

Come on Microsoft - we are waiting... push that "compile" button already

PiotrZ5 avatar Jan 24 '25 11:01 PiotrZ5

Hi u know for those who cant wait.under pecl, the windows dll files for 8.4 are already compiled and are working under windows pecl drivers 8.4 windows

Good for testing but i also hope soon for microsoft release @yitam πŸ™

jansor avatar Jan 24 '25 15:01 jansor

Hi u know for those who cant wait.under pecl, the windows dll files for 8.4 are already compiled and are working under windows pecl drivers 8.4 windows

Good for testing but i also hope soon for microsoft release @yitam πŸ™

That's brilliant - I still can't believe that it was released a year ago

PiotrZ5 avatar Jan 24 '25 16:01 PiotrZ5

The PDO driver is also compiled for PHP 8.4 on PECL: https://pecl.php.net/package/pdo_sqlsrv/5.12.0/windows

theodorejb avatar Jan 26 '25 17:01 theodorejb

I mentioned about this in #1477. You can plan ahead to include support for the next PHP version.

I guess November didn't happen @absci 😞

SharkMachine avatar Feb 13 '25 20:02 SharkMachine

I mentioned about this in #1477. You can plan ahead to include support for the next PHP version.

I guess November didn't happen @absci 😞

Hi, I'm no longer maintaining this project. There should be a new maintainer going forward, I just don't know the details.

absci avatar Feb 20 '25 21:02 absci

So what has gone so wrong that the initial plan of releasing around the same time did not happen? And when to expect a release now?

Balkoth avatar Feb 28 '25 09:02 Balkoth

Made a post below about this if anyone wants to add their support there, this was where the MS open source account on x.com suggested I post my inquiry.

https://learn.microsoft.com/en-us/answers/questions/2200850/updates-to-microsoft-drivers-for-php-for-microsoft

bobmurdoch avatar Mar 04 '25 14:03 bobmurdoch

Hi All,

MS has not abandoned PHP. We are going through some transitions internally, which has delayed things. I don't have an exact timeline for the next PHP driver release, but it's likely at least a couple quarters out.

Feel free to @ me with direct feedback. Having customer voices allows me to easily bubble those up internally to ensure appropriate prioritization of resources.

David-Engel avatar Mar 13 '25 21:03 David-Engel

@David-Engel It's already been nearly 4 months since PHP 8.4 was released. Two more quarters would require users to wait 10 months before they can use the latest version of PHP, by which time PHP 8.5 will already be in release candidate stage.

Is there any way to reduce the time it takes for this extension to support the current PHP version?

theodorejb avatar Mar 13 '25 22:03 theodorejb

@theodorejb Thanks. I understand the timelines and implications with alignment to PHP releases. I've communicated this internally and can't get a clearer timeline or promise anything more specific. I will keep advocating for it, though.

Regards, David

David-Engel avatar Mar 13 '25 23:03 David-Engel

Hi All,

MS has not abandoned PHP. We are going through some transitions internally, which has delayed things. I don't have an exact timeline for the next PHP driver release, but it's likely at least a couple quarters out.

Feel free to @ me with direct feedback. Having customer voices allows me to easily bubble those up internally to ensure appropriate prioritization of resources.

It is holding me updating a couple of clients PHP version because I tried the mentioned hacks etc but they did not work and had to roll back.

In the conversations seems it's not a lot of work to publish a new one. Until it is I can't not push forward. It has been months now and then the next PHP release will probably be out and we wait again.

lionslair avatar Mar 13 '25 23:03 lionslair

As PHP is one of the most used frameworks and SQL Server one of the most used databases i hope this gets more visibility and the attention it deserves.

It's holding us back from updating and staying current with the PHP releases.

Balkoth avatar Mar 13 '25 23:03 Balkoth

Hello! Just another team here locked in PHP83 due to lack of PHP84 msphpsql driver We are eagerly waiting for it

marcos-guerrero avatar Mar 14 '25 07:03 marcos-guerrero

Hello, same here.

I'm very much looking forward to Microsoft addressing the needs of their paying customers. The recurring issue of driver availability once again fuels the arguments of those advocating for a migration to PostgreSQL in our organisation.

@David-Engel if it helps let us know if we should contact someone directly. Thank you for your efforts.

lwohlhart avatar Mar 14 '25 07:03 lwohlhart

Hi guys, same here. It's the 6th guy needing the update today :D

Thanks @David-Engel for your work, i just hope it'll help.

Bibbeldebob avatar Mar 14 '25 08:03 Bibbeldebob

We have the same situation. Having a huge number of SQL Server databases, we are unable to upgrade our projects to PHP 8.4. Thanks @David-Engel for advocating for this topic.

JulianGlueck avatar Mar 14 '25 08:03 JulianGlueck

Hi all, another company here waiting eagerly. I hope this helps showing priority.

SimonDatapas avatar Mar 14 '25 09:03 SimonDatapas

@David-Engel Thanks for the update! At least, there's hope.

"a couple quarters out" seems long, though.

goozak avatar Mar 14 '25 13:03 goozak

Hi All,

MS has not abandoned PHP. We are going through some transitions internally, which has delayed things. I don't have an exact timeline for the next PHP driver release, but it's likely at least a couple quarters out.

Feel free to @ me with direct feedback. Having customer voices allows me to easily bubble those up internally to ensure appropriate prioritization of resources.

I hope you are planning ahead. PHP 8.5 will be released at the end of the year.

SharkMachine avatar Mar 15 '25 00:03 SharkMachine