mlocati / docker-php-extension-installer

Easily install PHP extensions in Docker containers
MIT License
4.18k stars 378 forks source link

Error Installing FTP Extension for PHP 8.4: Unrecognized Options `--with-openssl-dir` #938

Closed ghostwriter closed 2 months ago

ghostwriter commented 2 months ago

Version of install-php-extensions

$ install-php-extensions ftp

Error description

According to the PHP 8.4 UPGRADING.INTERNALS the --with-openssl-dir configure option has been removed.

SSL support in ext/ftp and ext/mysqlnd is now enabled implicitly when building with ext/openssl (--with-openssl), or explicitly by using the new configure options --with-ftp-ssl and --with-mysqlnd-ssl.

Docker image

php:8.4-rc-cli-alpine

Minimal Dockerfile

FROM php:8.4-rc-cli-alpine

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

RUN install-php-extensions ftp
mlocati commented 2 months ago

Superseeded by #940

ghostwriter commented 1 month ago
if [ $(php -r "echo version_compare(PHP_VERSION, '8.3.999', '>');") = 1 ]; then \
      sed -i 's/--with-openssl-dir=\/usr/--with-ftp-ssl/' /usr/local/bin/install-php-extensions; \
    fi;