From fe75cc61ec98548facb480ca1bb91430cce061fa Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 13 Mar 2024 18:05:54 +0100 Subject: [PATCH] Bump to php-sqlsrv 5.12.0 for php83 and stay with odbc17 --- root/tmp/setup/sqlsrv-extension.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/root/tmp/setup/sqlsrv-extension.sh b/root/tmp/setup/sqlsrv-extension.sh index 49e9f52..2dba47b 100755 --- a/root/tmp/setup/sqlsrv-extension.sh +++ b/root/tmp/setup/sqlsrv-extension.sh @@ -31,12 +31,14 @@ curl https://packages.microsoft.com/config/debian/10/prod.list -o /etc/apt/sourc apt-get update echo "Install msodbcsql" -ACCEPT_EULA=Y apt-get install -y msodbcsql18 +# We have to stay with 17 because 18 encrypts the connections by default and that breaks ADOdb/2nd connection +# tests. Only when https://tracker.moodle.org/browse/MDL-77678 is fixed, we can move to odbc18. +ACCEPT_EULA=Y apt-get install -y msodbcsql17 -ln -fsv /opt/mssql-tools18/bin/* /usr/bin +ln -fsv /opt/mssql-tools/bin/* /usr/bin -# Need 5.11 (or later) for PHP 8.2 support -pecl install sqlsrv-5.11.1 +# Need 5.12 (or later) for PHP 8.3 support +pecl install sqlsrv-5.12.0 docker-php-ext-enable sqlsrv # Keep our image size down..