From 1803f428e3757dd1fcf2d3a6e6378ddf95bf5e22 Mon Sep 17 00:00:00 2001 From: chrishanline Date: Tue, 20 Feb 2024 00:36:04 -0600 Subject: [PATCH] use SQLSRV 5.12.0 for PHP 8.1, 8.2, 8.3 (#530) --- layers/sqlsrv/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layers/sqlsrv/Dockerfile b/layers/sqlsrv/Dockerfile index 13fd7fc7..390d118f 100644 --- a/layers/sqlsrv/Dockerfile +++ b/layers/sqlsrv/Dockerfile @@ -10,9 +10,9 @@ RUN yum -y install unixODBC-devel-2.3.1-14.amzn2.x86_64 RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo RUN ACCEPT_EULA=Y yum -y install msodbcsql17-17.10.1.1-1.x86_64 -RUN if [ "$PHP_VERSION" = "83" ]; \ - then SQLSRV_VERSION=5.12.0beta1 ; \ - else SQLSRV_VERSION=5.11.1 ; \ +RUN if [ "$PHP_VERSION" = "80" ]; \ + then SQLSRV_VERSION=5.11.1 ; \ + else SQLSRV_VERSION=5.12.0 ; \ fi ; \ pecl install sqlsrv-${SQLSRV_VERSION} && \ pecl install pdo_sqlsrv-${SQLSRV_VERSION}