Tim Düsterhus 641cf9a226 Stop statically compiling the FTP extension (#1482)
* Stop statically compiling the FTP extension

According to the documentation of `ftp_ssl_connect()`, the limitation of
requiring a static build was lifted with PHP 7.0. Thus stop forcibly including
the FTP extension, which should be needed somewhat rarely.

Example:

    root@2a4c93db4a86:/var/www/html# apt-get update -qqqqq
    root@2a4c93db4a86:/var/www/html# apt-get install -yyyyqqqq libssl-dev
    debconf: delaying package configuration, since apt-utils is not installed
    Selecting previously unselected package libssl-dev:amd64.
    (Reading database ... 13257 files and directories currently installed.)
    Preparing to unpack .../libssl-dev_3.0.11-1~deb12u2_amd64.deb ...
    Unpacking libssl-dev:amd64 (3.0.11-1~deb12u2) ...
    Setting up libssl-dev:amd64 (3.0.11-1~deb12u2) ...
    root@2a4c93db4a86:/var/www/html# docker-php-ext-configure ftp --with-openssl-dir >/dev/null
    root@2a4c93db4a86:/var/www/html# docker-php-ext-install ftp >/dev/null
    + strip --strip-all modules/ftp.so
    root@2a4c93db4a86:/var/www/html# php -r "var_dump(function_exists('ftp_ssl_connect'));"
    bool(true)

* Drop `--enable-ftp` for the next patch
2024-01-03 12:34:29 -08:00
2020-10-16 16:27:26 -07:00
2020-11-30 10:28:42 -05:00
2018-07-30 09:15:18 -07:00
2022-12-20 14:23:13 -08:00
2023-12-22 04:56:26 -08:00

https://github.com/docker-library/php

Maintained by: the Docker Community

This is the Git repo of the Docker "Official Image" for php (not to be confused with any official php image provided by php upstream). See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues.

The full image description on Docker Hub is generated/maintained over in the docker-library/docs repository, specifically in the php directory.

See a change merged here that doesn't show up on Docker Hub yet?

For more information about the full official images change lifecycle, see the "An image's source changed in Git, now what?" FAQ entry.

For outstanding php image PRs, check PRs with the "library/php" label on the official-images repository. For the current "source of truth" for php, see the library/php file in the official-images repository.


  • build status badge
  • build status badge
Build Status Badges (per-arch)
amd64 build status badge arm32v5 build status badge arm32v6 build status badge arm32v7 build status badge
arm64v8 build status badge i386 build status badge mips64le build status badge ppc64le build status badge
s390x build status badge put-shared build status badge
Description
Docker Official Image packaging for PHP
Readme MIT 7.3 MiB
Languages
Dockerfile 51.9%
Shell 48.1%