Skip to content

Commit

Permalink
Bump to php-sqlsrv 5.12.0 for php83 and stay with odbc17
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 13, 2024
1 parent 0b8610b commit fe75cc6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions root/tmp/setup/sqlsrv-extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..
Expand Down

0 comments on commit fe75cc6

Please sign in to comment.