SQL Drivers for PHP 8.4

Piedlow, Bert 30 Reputation points
2025-01-18T01:44:39.5133333+00:00

Been using PHP 8.4 for a couple months, just realized I needed to download SQL driver for new project. The newest driver I can find is 5.12.0 however it says it only supports up to PHP version 8.3.

When will new driver that supports PHP 8.4 be available?

Will the 8.3 dll work? if not is there anyway to modify it so that it will ???

Thanks in advance,

Bert

SQL Server | Other
{count} votes

Answer accepted by question author
  1. LiHongMSFT-4306 31,616 Reputation points
    2025-01-20T02:46:30.6966667+00:00

    Hi @Piedlow, Bert

    PHP 8.4 still doesn't have an MSSQL driver.

    User's image

    If you have feedback, the best way to contact the Microsoft Drivers for PHP for SQL Server team is by filing an issue on the GitHub repository.

    And as Erland answered, it is not suggested to perform this in production before the new version released. Cause there has been some issues discussed on this thread.

    Best regards,

    Cosmog


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Erland Sommarskog 128.7K Reputation points MVP Volunteer Moderator
    2025-01-18T09:56:42.35+00:00

    I don't use PHP myself, but Google lead me to https://github.com/microsoft/msphpsql/issues/1523, and the answer seems to be:

    • Yes, the current driver works with PHP 8.4.
    • Don't use it in production, until official support has been announced.
    1 person found this answer helpful.

  2. Matthias 25 Reputation points
    2025-04-15T11:14:05.8566667+00:00

    the open Source PHP Foundation released PHP 8.4 five month ago !!!

    Somehow that multi trillion dollar company MS is not able to manage a simple update for their overpriced and outdated products.

    But I guess the people in Redmond are too busy counting money.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.