Skip to content

Commit

Permalink
Disable mcrypt while unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
andytson-inviqa committed Dec 1, 2023
1 parent 8afd4bb commit b76cd53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ RUN cd /root/installer; ./enable.sh \
bcmath \
gd \
intl \
mcrypt \
"$(dpkg --compare-versions "$PHP_VERSION" ge 8.3 || echo mcrypt )" \
opcache \
pdo_mysql \
pdo_pgsql \
Expand Down
2 changes: 1 addition & 1 deletion installer/base/extensions/mcrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function compile_mcrypt()
7.1)
docker-php-ext-install mcrypt
;;
7.*|8.*)
7.*|8.[012])
printf "\n" | pecl install mcrypt
;;
*)
Expand Down
2 changes: 1 addition & 1 deletion test.extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ for extension in extensions/*; do
fi

# Some extensions not yet ready for PHP 8.3
if [[ "$extension_name" = 'imagick' ]] && version_compare "$PHP_VERSION" ge 8.3; then
if [[ "$extension_name" = 'imagick' || "$extension_name" = 'mcrypt' ]] && version_compare "$PHP_VERSION" ge 8.3; then
echo ' skipped'
continue
fi
Expand Down

0 comments on commit b76cd53

Please sign in to comment.