-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The packages sqlsrv and pdo_sqlsrv version 5.10.0 do not work for PHP 8.0 on Debian 11 #1377
Comments
Do they work on php7.4? |
It fails with PHP 7.4 with the following result:
|
Did you follow the instructions in https://docs.microsoft.com/en-us/sql/connect/php/installation-tutorial-linux-mac?view=sql-server-ver15#step-3-install-the-php-drivers-for-microsoft-sql-server-ubuntu-with-php-fpm for 7.4 and 8.0? |
I confirm your experience with PHP7.4 using the instructions in https://docs.microsoft.com/en-us/sql/connect/php/installation-tutorial-linux-mac?view=sql-server-ver15#step-3-install-the-php-drivers-for-microsoft-sql-server-ubuntu-with-php-fpm |
I followed the instructions and I got the fail. |
I can confirm this issue. A work around is after change version to 8.0 do |
@absci: Thank you! |
I did some research and I think it's not possible to let Pecl compile for all php versions during one install. But I found a solution here. I have both 8.0 and 8.1 installed on my machine.
After that both php versions can use sqlsrv extension. |
Please check the FAQ (frequently-asked questions) first. If you have other questions or something to report, please address the following (skipping questions might delay our responses):
PHP version 8.0
PHP SQLSRV or PDO_SQLSRV version 5.10.0
Microsoft ODBC Driver version 18
SQL Server version Not important
Client operating system Debian 11
Table schema Not important
Problem description
I have changed the default PHP version from 8.1 to 8.0. When I run
php -v
it returns to me that I am running version 8.0.I then install the packages sqlsrv and pdo_sqlsrv, like:
When I than run
php -v
I get the following warning:Installing it for PHP 8.1 works great. Thank you for that.
Expected behavior and actual behavior
Make it compile for PHP 8.0 and PHP 7.4
Repro code or steps to reproduce
See Problem description and I am using PHP from https://deb.sury.org/ with multiple versions of PHP.
The text was updated successfully, but these errors were encountered: