Skip to content

Commit b251183

Browse files
committed
Bump to php-sqlsrv 5.12.0 for php83 and stay with odbc17
1 parent 27d9f11 commit b251183

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

root/tmp/setup/sqlsrv-extension.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ curl https://packages.microsoft.com/config/debian/10/prod.list -o /etc/apt/sourc
3131
apt-get update
3232

3333
echo "Install msodbcsql"
34-
ACCEPT_EULA=Y apt-get install -y msodbcsql18
34+
# We have to stay with 17 because 18 encrypts the connections by default and that breaks ADOdb/2nd connection
35+
# tests. Only when https://tracker.moodle.org/browse/MDL-77678 is fixed, we can move to odbc18.
36+
ACCEPT_EULA=Y apt-get install -y msodbcsql17
3537

36-
ln -fsv /opt/mssql-tools18/bin/* /usr/bin
38+
ln -fsv /opt/mssql-tools/bin/* /usr/bin
3739

38-
# Need 5.11 (or later) for PHP 8.2 support
39-
pecl install sqlsrv-5.11.1
40+
# Need 5.12 (or later) for PHP 8.3 support
41+
pecl install sqlsrv-5.12.0
4042
docker-php-ext-enable sqlsrv
4143

4244
# Keep our image size down..

0 commit comments

Comments
 (0)