From 1225d564a7b381ca6c71206e0997aac54626b75f Mon Sep 17 00:00:00 2001 From: cytopia Date: Tue, 4 Feb 2020 19:13:13 +0100 Subject: [PATCH] Fix sqlsrv install for PHP 7.1 --- CHANGELOG.md | 1 + Dockerfiles/mods/Dockerfile-7.1 | 4 ++-- build/ansible/group_vars/all/mods.yml | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b956253..d6d87ae8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ #### Fixed - Fix pdo_sqlsrv install for PHP 7.1 +- Fix sqlsrv install for PHP 7.1 - Fix composer memory issues during install #### Added diff --git a/Dockerfiles/mods/Dockerfile-7.1 b/Dockerfiles/mods/Dockerfile-7.1 index 39956019..34fff300 100644 --- a/Dockerfiles/mods/Dockerfile-7.1 +++ b/Dockerfiles/mods/Dockerfile-7.1 @@ -577,10 +577,10 @@ RUN set -eux \ # -------------------- Installing PHP Extension: sqlsrv -------------------- RUN set -eux \ - # Installation: Generic + # Installation: Version specific # Type: PECL extension # Default: Pecl command - && pecl install sqlsrv \ + && pecl install sqlsrv-5.6.1 \ # Enabling && docker-php-ext-enable sqlsrv \ && true diff --git a/build/ansible/group_vars/all/mods.yml b/build/ansible/group_vars/all/mods.yml index 285b2a7b..7d7c6ae8 100644 --- a/build/ansible/group_vars/all/mods.yml +++ b/build/ansible/group_vars/all/mods.yml @@ -897,6 +897,11 @@ extensions_available: version: 5.3.0 build_dep: [unixodbc-dev] run_dep: [unixodbc] + 7.1: + type: pecl + version: 5.6.1 + build_dep: [unixodbc-dev] + run_dep: [unixodbc] all: type: pecl build_dep: [unixodbc-dev]