File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ if [[ -z "$EXT_DISABLE_DECIMAL" || "0" == "$EXT_DISABLE_DECIMAL" || "false" == "
2020 MPDEC_TMP_DIR=" /tmp/$MPDEC_RELEASE_NAME "
2121 MPDEC_TMP_ARCHIVE=" $MPDEC_TMP_DIR /$MPDEC_RELEASE_NAME .tar.gz"
2222
23+ DECIMAL_PKG=" decimal"
24+ if [[ " $PHP_IMAGE " == * " php:7." * || " $PHP_IMAGE " == * " php:8.0" * || " $PHP_IMAGE " == * " php:8.1" * ]]; then
25+ DECIMAL_PKG=" decimal-1.4.0"
26+ fi
27+
2328 RUN_CMDS=" $RUN_CMDS \\ n\\ nRUN"
2429 RUN_CMDS=" $RUN_CMDS mkdir -p $MPDEC_TMP_DIR "
2530 RUN_CMDS=" $RUN_CMDS && \\\\ \n cd $MPDEC_TMP_DIR "
@@ -29,7 +34,7 @@ if [[ -z "$EXT_DISABLE_DECIMAL" || "0" == "$EXT_DISABLE_DECIMAL" || "false" == "
2934 RUN_CMDS=" $RUN_CMDS && \\\\ \n cd $MPDEC_RELEASE_NAME "
3035 RUN_CMDS=" $RUN_CMDS && \\\\ \n ./configure && make && make install"
3136 RUN_CMDS=" $RUN_CMDS && \\\\ \n rm -rf $MPDEC_TMP_DIR "
32- RUN_CMDS=" $RUN_CMDS && \\\\ \n pecl install decimal && docker-php-ext-enable decimal"
37+ RUN_CMDS=" $RUN_CMDS && \\\\ \n pecl install $DECIMAL_PKG && docker-php-ext-enable decimal"
3338fi
3439
3540COMPOSER_REMOVE=' '
You can’t perform that action at this time.
0 commit comments