From 2759864e2a1f5052c222e993ba4e5bfceeef145b Mon Sep 17 00:00:00 2001 From: duchymor <42995320+duchymor@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:53:26 +0100 Subject: [PATCH] fix oci8 --- php-fpm/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 19c45270..93f906cc 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -605,6 +605,8 @@ RUN if [ ${INSTALL_OCI8} = true ]; then \ echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.12; \ elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \ echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.2.0; \ + elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \ + echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-3.0.1; \ else \ echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8; \ fi \