From 792c07bcebb0361dcfcce54271c52ade15ed651e Mon Sep 17 00:00:00 2001 From: Mistral OZ - MIO Date: Fri, 20 Nov 2026 15:13:54 +0100 Subject: [PATCH 1/2] Add PHP 8.6 extensions/8.6 lists the extensions of 8.5 that sury publishes for PHP 8.6: all of them but swoole, which does not support PHP 8.6 yet. The tests of an extension are skipped when it is not in extensions/. opcache is built in PHP from 8.5 on, not only in 8.5. --- .github/php-watch.sh | 10 +- .github/workflows/workflow.yml | 4 +- CHANGELOG.md | 1 + Dockerfile.base | 2 +- Makefile | 10 +- README.md | 16 ++ docker-bake.hcl | 480 +++++++++++++++++++++++++++++++ docs/extensions.md | 1 + extensions/8.6/amqp | 1 + extensions/8.6/apcu | 1 + extensions/8.6/ast | 1 + extensions/8.6/bcmath | 1 + extensions/8.6/blackfire | 1 + extensions/8.6/bz2 | 1 + extensions/8.6/dba | 1 + extensions/8.6/decimal | 1 + extensions/8.6/disable_all.sh | 1 + extensions/8.6/docker-install.sh | 1 + extensions/8.6/ds | 1 + extensions/8.6/enchant | 1 + extensions/8.6/excimer | 1 + extensions/8.6/ffi | 1 + extensions/8.6/gd | 1 + extensions/8.6/gettext | 1 + extensions/8.6/gmp | 1 + extensions/8.6/gnupg | 1 + extensions/8.6/grpc | 1 + extensions/8.6/igbinary | 1 + extensions/8.6/imagick | 1 + extensions/8.6/imap | 1 + extensions/8.6/inotify | 1 + extensions/8.6/install_all.sh | 1 + extensions/8.6/intl | 1 + extensions/8.6/ldap | 1 + extensions/8.6/lz4 | 1 + extensions/8.6/mailparse | 1 + extensions/8.6/mcrypt | 1 + extensions/8.6/memcached | 1 + extensions/8.6/mongodb | 1 + extensions/8.6/msgpack | 1 + extensions/8.6/mysqli | 1 + extensions/8.6/odbc | 1 + extensions/8.6/opentelemetry | 1 + extensions/8.6/pcov | 1 + extensions/8.6/pdo_dblib | 1 + extensions/8.6/pdo_mysql | 1 + extensions/8.6/pdo_odbc | 1 + extensions/8.6/pdo_pgsql | 1 + extensions/8.6/pdo_sqlite | 1 + extensions/8.6/pgsql | 1 + extensions/8.6/pspell | 1 + extensions/8.6/rdkafka | 1 + extensions/8.6/redis | 1 + extensions/8.6/snmp | 1 + extensions/8.6/soap | 1 + extensions/8.6/sqlite3 | 1 + extensions/8.6/tidy | 1 + extensions/8.6/uploadprogress | 1 + extensions/8.6/uuid | 1 + extensions/8.6/xdebug | 1 + extensions/8.6/xmlrpc | 1 + extensions/8.6/yaml | 1 + extensions/8.6/zip | 1 + extensions/8.6/zstd | 1 + tests-suite/config | 7 + tests-suite/php-blackfire.sh | 1 + tests-suite/php-extensions.sh | 16 ++ tests-suite/php-xdebug.sh | 1 + utils/Dockerfile.base.blueprint | 2 +- utils/README.blueprint.md | 3 +- utils/docker-bake.blueprint.hcl | 2 +- 71 files changed, 600 insertions(+), 12 deletions(-) create mode 120000 extensions/8.6/amqp create mode 120000 extensions/8.6/apcu create mode 120000 extensions/8.6/ast create mode 120000 extensions/8.6/bcmath create mode 120000 extensions/8.6/blackfire create mode 120000 extensions/8.6/bz2 create mode 120000 extensions/8.6/dba create mode 120000 extensions/8.6/decimal create mode 120000 extensions/8.6/disable_all.sh create mode 120000 extensions/8.6/docker-install.sh create mode 120000 extensions/8.6/ds create mode 120000 extensions/8.6/enchant create mode 120000 extensions/8.6/excimer create mode 120000 extensions/8.6/ffi create mode 120000 extensions/8.6/gd create mode 120000 extensions/8.6/gettext create mode 120000 extensions/8.6/gmp create mode 120000 extensions/8.6/gnupg create mode 120000 extensions/8.6/grpc create mode 120000 extensions/8.6/igbinary create mode 120000 extensions/8.6/imagick create mode 120000 extensions/8.6/imap create mode 120000 extensions/8.6/inotify create mode 120000 extensions/8.6/install_all.sh create mode 120000 extensions/8.6/intl create mode 120000 extensions/8.6/ldap create mode 120000 extensions/8.6/lz4 create mode 120000 extensions/8.6/mailparse create mode 120000 extensions/8.6/mcrypt create mode 120000 extensions/8.6/memcached create mode 120000 extensions/8.6/mongodb create mode 120000 extensions/8.6/msgpack create mode 120000 extensions/8.6/mysqli create mode 120000 extensions/8.6/odbc create mode 120000 extensions/8.6/opentelemetry create mode 120000 extensions/8.6/pcov create mode 120000 extensions/8.6/pdo_dblib create mode 120000 extensions/8.6/pdo_mysql create mode 120000 extensions/8.6/pdo_odbc create mode 120000 extensions/8.6/pdo_pgsql create mode 120000 extensions/8.6/pdo_sqlite create mode 120000 extensions/8.6/pgsql create mode 120000 extensions/8.6/pspell create mode 120000 extensions/8.6/rdkafka create mode 120000 extensions/8.6/redis create mode 120000 extensions/8.6/snmp create mode 120000 extensions/8.6/soap create mode 120000 extensions/8.6/sqlite3 create mode 120000 extensions/8.6/tidy create mode 120000 extensions/8.6/uploadprogress create mode 120000 extensions/8.6/uuid create mode 120000 extensions/8.6/xdebug create mode 120000 extensions/8.6/xmlrpc create mode 120000 extensions/8.6/yaml create mode 120000 extensions/8.6/zip create mode 120000 extensions/8.6/zstd diff --git a/.github/php-watch.sh b/.github/php-watch.sh index 613807e6..2c95e746 100755 --- a/.github/php-watch.sh +++ b/.github/php-watch.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # One pass of the watch of the PHP packages of sury: rebuilds each PHP version whose published images do not have the -# packages published by sury (label com.thecodingmachine.php.package of each arch), with workflow.yml (8.2 to 8.5) and -# legacy-v5.yml (NodeJS 18 and 20, PHP 7.4 to 8.1). At most 3 builds for the same packages, successful or not. +# packages published by sury (label com.thecodingmachine.php.package of each arch), with workflow.yml (8.2 to 8.6) and +# legacy-v5.yml (NodeJS 18 and 20 up to PHP 8.5, PHP 7.4 to 8.1). At most 3 builds for the same packages, successful or not. # # Environment: # GITHUB_REPOSITORY, GITHUB_REPOSITORY_OWNER, GITHUB_REF_NAME, GH_TOKEN set by GitHub Actions @@ -15,7 +15,7 @@ set -euo pipefail SURY_URL="${SURY_URL:-https://packages.sury.org/php}" -PHP_VERSIONS="${PHP_VERSIONS:-8.5 8.4 8.3 8.2 8.1 8.0 7.4}" +PHP_VERSIONS="${PHP_VERSIONS:-8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.4}" IMAGE="ghcr.io/${GITHUB_REPOSITORY_OWNER}/php" LABEL="com.thecodingmachine.php.package" MAX_BUILDS=3 @@ -24,7 +24,7 @@ DIGEST_INTERVAL=1800 [[ "${ISSUE:-}" =~ ^[0-9]*$ ]] || { echo "::error::ISSUE: an issue number"; exit 1; } [[ "${SURY_URL}" =~ ^https:// ]] || { echo "::error::SURY_URL: https only"; exit 1; } for V in ${PHP_VERSIONS}; do - [[ " 8.5 8.4 8.3 8.2 8.1 8.0 7.4 " == *" ${V} "* ]] || { echo "::error::Unknown PHP version: ${V}"; exit 1; } + [[ " 8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.4 " == *" ${V} "* ]] || { echo "::error::Unknown PHP version: ${V}"; exit 1; } done for F in ${FIXED:-}; do [[ "${F}" =~ ^[0-9]\.[0-9]=[0-9A-Za-z.:+~-]+$ ]] || { echo "::error::FIXED: X.Y=version, e.g. 8.4=8.4.28"; exit 1; } @@ -109,6 +109,8 @@ check() { for V in ${PHP_VERSIONS}; do if [[ " 7.4 8.0 8.1 " == *" ${V} "* ]]; then check "$V" legacy-v5.yml "${V}-v5-slim-cli" "\`${V}-v5-*\`" + elif [ "${V}" = 8.6 ]; then + check "$V" workflow.yml "${V}-v5-slim-cli" "\`${V}-v5-*\`" else MAIN=$(check "$V" workflow.yml "${V}-v5-slim-cli" "\`${V}-v5-*\` except node18 and node20") LEGACY=$(check "$V" legacy-v5.yml "${V}-v5-cli-node20" "\`${V}-v5-*-node18\`, \`${V}-v5-*-node20\`") diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 6309c74d..b03d9748 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -52,7 +52,7 @@ jobs: strategy: fail-fast: false matrix: - php_version: ${{ fromJSON(inputs.php_version && (contains(fromJSON('["8.5", "8.4", "8.3", "8.2"]'), inputs.php_version) && format('["{0}"]', inputs.php_version) || '[]') || '["8.5", "8.4", "8.3", "8.2"]') }} + php_version: ${{ fromJSON(inputs.php_version && (contains(fromJSON('["8.6", "8.5", "8.4", "8.3", "8.2"]'), inputs.php_version) && format('["{0}"]', inputs.php_version) || '[]') || '["8.6", "8.5", "8.4", "8.3", "8.2"]') }} builder: [ {arch: "amd64", os: "ubuntu-24.04"}, {arch: "arm64", os: "ubuntu-24.04-arm"}] runs-on: ${{ matrix.builder.os }} env: @@ -168,7 +168,7 @@ jobs: strategy: fail-fast: false matrix: - php_version: ${{ fromJSON(inputs.php_version && (contains(fromJSON('["8.5", "8.4", "8.3", "8.2"]'), inputs.php_version) && format('["{0}"]', inputs.php_version) || '[]') || '["8.5", "8.4", "8.3", "8.2"]') }} + php_version: ${{ fromJSON(inputs.php_version && (contains(fromJSON('["8.6", "8.5", "8.4", "8.3", "8.2"]'), inputs.php_version) && format('["{0}"]', inputs.php_version) || '[]') || '["8.6", "8.5", "8.4", "8.3", "8.2"]') }} steps: - name: Checkout uses: actions/checkout@v7 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1da05f44..0fd6776a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Minor changes * **2026-12-04** + * New PHP 8.6 images, with all the extensions of PHP 8.5 except *swoole*, which does not support PHP 8.6 yet. See [Extensions](docs/extensions.md) * Security: Supercronic 0.2.52 (Go stdlib vulnerabilities, 4 high). Each build of the CI now installs the latest release of Supercronic, the default version only applies to the local builds * **2026-11-20** diff --git a/Dockerfile.base b/Dockerfile.base index 9cf9d266..1a4c3452 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -65,7 +65,7 @@ RUN apt update \ ARG PHP_PACKAGE_VERSION="" # Note: From PHP 8.5, opcache is built-in and php${PHP_VERSION}-opcache package doesn't exist RUN OPCACHE_PACKAGE="" \ - && if [ "${PHP_VERSION}" != "8.5" ]; then \ + && if [ "$(printf '%s\n' "${PHP_VERSION}" 8.5 | sort -V | head -n 1)" != "8.5" ]; then \ OPCACHE_PACKAGE="php${PHP_VERSION}-opcache"; \ fi \ && apt update \ diff --git a/Makefile b/Makefile index 46ec6148..6560084d 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ blueprint: ## Generate all blueprints file @if ! type orbit >/dev/null 2>&1; then echo "Missing orbit dependency, please install from https://github.com/gulien/orbit/"; exit 1; fi orbit run generate -test-latest: test-8.5 ## Test the latest build only +test-latest: test-8.6 ## Test the latest build only _test-prerequisites: blueprint docker pull ubuntu:20.04 @@ -18,11 +18,12 @@ test-legacy-quick: ## Test 7.4, 8.0 and 8.1 quickly VERSION=7.4 VARIANT=cli $(MAKE) _test-version-quick VERSION=8.0 VARIANT=cli $(MAKE) _test-version-quick VERSION=8.1 VARIANT=cli $(MAKE) _test-version-quick -test-quick: ## Test 8.2, 8.3, 8.4 and 8.5 quickly +test-quick: ## Test 8.2, 8.3, 8.4, 8.5 and 8.6 quickly VERSION=8.2 VARIANT=cli $(MAKE) _test-version-quick VERSION=8.3 VARIANT=cli $(MAKE) _test-version-quick VERSION=8.4 VARIANT=cli $(MAKE) _test-version-quick VERSION=8.5 VARIANT=cli $(MAKE) _test-version-quick + VERSION=8.6 VARIANT=cli $(MAKE) _test-version-quick test-8.3: ## Test php8.3 build only VERSION=8.3 VARIANT=cli $(MAKE) _test-version @@ -39,6 +40,11 @@ test-8.1: ## Test php8.1 build only VERSION=8.1 VARIANT=apache $(MAKE) _test-version VERSION=8.1 VARIANT=fpm $(MAKE) _test-version +test-8.6: ## Test php8.6 build only + VERSION=8.6 VARIANT=cli $(MAKE) _test-version + VERSION=8.6 VARIANT=apache $(MAKE) _test-version + VERSION=8.6 VARIANT=fpm $(MAKE) _test-version + test-8.5: ## Test php8.5 build only VERSION=8.5 VARIANT=cli $(MAKE) _test-version VERSION=8.5 VARIANT=apache $(MAKE) _test-version diff --git a/README.md b/README.md index 1d8d0bfe..f927287e 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,21 @@ See the [documentation](#documentation) for all the features. | Name | PHP version | type |variant | NodeJS version | Size |-------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|--------|-----------------|------ +| [thecodingmachine/php:8.6-v5-apache](Dockerfile.apache) | `8.6.x` | fat | apache | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-apache.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-apache) +| [thecodingmachine/php:8.6-v5-apache-node22](Dockerfile.apache.node) | `8.6.x` | fat | apache | `22.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-apache-node22.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-apache-node22) +| [thecodingmachine/php:8.6-v5-apache-node24](Dockerfile.apache.node) | `8.6.x` | fat | apache | `24.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-apache-node24.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-apache-node24) +| [thecodingmachine/php:8.6-v5-apache-node26](Dockerfile.apache.node) | `8.6.x` | fat | apache | `26.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-apache-node26.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-apache-node26) +| [thecodingmachine/php:8.6-v5-fpm](Dockerfile.fpm) | `8.6.x` | fat | fpm | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-fpm.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-fpm) +| [thecodingmachine/php:8.6-v5-fpm-node22](Dockerfile.fpm.node) | `8.6.x` | fat | fpm | `22.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-fpm-node22.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-fpm-node22) +| [thecodingmachine/php:8.6-v5-fpm-node24](Dockerfile.fpm.node) | `8.6.x` | fat | fpm | `24.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-fpm-node24.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-fpm-node24) +| [thecodingmachine/php:8.6-v5-fpm-node26](Dockerfile.fpm.node) | `8.6.x` | fat | fpm | `26.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-fpm-node26.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-fpm-node26) +| [thecodingmachine/php:8.6-v5-cli](Dockerfile.cli) | `8.6.x` | fat | cli | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-cli.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-cli) +| [thecodingmachine/php:8.6-v5-cli-node22](Dockerfile.cli.node) | `8.6.x` | fat | cli | `22.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-cli-node22.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-cli-node22) +| [thecodingmachine/php:8.6-v5-cli-node24](Dockerfile.cli.node) | `8.6.x` | fat | cli | `24.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-cli-node24.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-cli-node24) +| [thecodingmachine/php:8.6-v5-cli-node26](Dockerfile.cli.node) | `8.6.x` | fat | cli | `26.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-cli-node26.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-cli-node26) +| [thecodingmachine/php:8.6-v5-slim-apache](Dockerfile.slim.apache) | `8.6.x` | slim | apache | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-slim-apache.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-slim-apache) +| [thecodingmachine/php:8.6-v5-slim-fpm](Dockerfile.slim.fpm) | `8.6.x` | slim | fpm | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-slim-fpm.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-slim-fpm) +| [thecodingmachine/php:8.6-v5-slim-cli](Dockerfile.slim.cli) | `8.6.x` | slim | cli | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-slim-cli.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-slim-cli) | [thecodingmachine/php:8.5-v5-apache](Dockerfile.apache) | `8.5.x` | fat | apache | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.5-v5-apache.svg)](https://microbadger.com/images/thecodingmachine/php:8.5-v5-apache) | [thecodingmachine/php:8.5-v5-apache-node22](Dockerfile.apache.node) | `8.5.x` | fat | apache | `22.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.5-v5-apache-node22.svg)](https://microbadger.com/images/thecodingmachine/php:8.5-v5-apache-node22) | [thecodingmachine/php:8.5-v5-apache-node24](Dockerfile.apache.node) | `8.5.x` | fat | apache | `24.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.5-v5-apache-node24.svg)](https://microbadger.com/images/thecodingmachine/php:8.5-v5-apache-node24) @@ -126,6 +141,7 @@ Bugs are fixed on maintained versions only. | PHP version | Status | |-------------|-----------------------------------------------| +| 8.6 | Maintained (until 2030-12-31) | | 8.5 | Maintained (until 2029-12-31) | | 8.4 | Maintained (until 2028-12-31) | | 8.3 | Maintained (until 2027-12-31) | diff --git a/docker-bake.hcl b/docker-bake.hcl index bf8a167c..feeaae3b 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -3,6 +3,7 @@ group "default" { targets = [ + "php86", "php85", "php84", "php83", @@ -13,6 +14,51 @@ group "default" { ] } +group "php86-apache-all" { + targets = [ + "php86-slim-apache", + "php86-apache", + "php86-apache-node26","php86-apache-node24","php86-apache-node22", + ] +} +# NodeJS versions no longer maintained, built by the legacy workflow +group "php86-apache-legacy-node" { + targets = [ + "php86-slim-apache", + "php86-apache", + "php86-apache-node20","php86-apache-node18", + ] +} +group "php86-fpm-all" { + targets = [ + "php86-slim-fpm", + "php86-fpm", + "php86-fpm-node26","php86-fpm-node24","php86-fpm-node22", + ] +} +# NodeJS versions no longer maintained, built by the legacy workflow +group "php86-fpm-legacy-node" { + targets = [ + "php86-slim-fpm", + "php86-fpm", + "php86-fpm-node20","php86-fpm-node18", + ] +} +group "php86-cli-all" { + targets = [ + "php86-slim-cli", + "php86-cli", + "php86-cli-node26","php86-cli-node24","php86-cli-node22", + ] +} +# NodeJS versions no longer maintained, built by the legacy workflow +group "php86-cli-legacy-node" { + targets = [ + "php86-slim-cli", + "php86-cli", + "php86-cli-node20","php86-cli-node18", + ] +} group "php85-apache-all" { targets = [ "php85-slim-apache", @@ -258,6 +304,9 @@ group "php74-cli-all" { } +group "php86" { + targets = ["php86-apache-all","php86-fpm-all","php86-cli-all",] +} group "php85" { targets = ["php85-apache-all","php85-fpm-all","php85-cli-all",] } @@ -323,6 +372,437 @@ target "default" { } +########################### +## PHP 8.6 +########################### +# Layers shared by the images of all the variants (not published) +target "php86-base" { + inherits = ["default"] + cache-from = cache_from("php86-base") + cache-to = cache_to("php86-base") + dockerfile = "Dockerfile.base" + output = ["type=cacheonly"] + args = { + PHP_VERSION = "8.6" + } +} + +target "php86-extensions" { + inherits = ["default"] + cache-from = cache_from("php86-extensions") + cache-to = cache_to("php86-extensions") + dockerfile = "Dockerfile.extensions" + output = ["type=cacheonly"] + contexts = { + base = "target:php86-base" + } +} + +# thecodingmachine/php:8.6-v5-slim-apache +target "php86-slim-apache" { + inherits = ["default"] + cache-from = cache_from("php86-slim-apache") + cache-to = cache_to("php86-slim-apache") + tags = tag("8.6", "slim-apache") + dockerfile = "Dockerfile.slim.apache" + args = { + VARIANT = "apache" + } + contexts = { + base = "target:php86-base" + } +} + +# The slim image of the variant with the extensions (not published) +target "php86-slim-apache-with-extensions" { + inherits = ["default"] + cache-from = cache_from("php86-slim-apache-with-extensions") + cache-to = cache_to("php86-slim-apache-with-extensions") + dockerfile = "Dockerfile.slim.apache" + args = { + VARIANT = "apache" + } + output = ["type=cacheonly"] + contexts = { + base = "target:php86-extensions" + } +} + +# thecodingmachine/php:8.6-v5-apache +target "php86-apache" { + inherits = ["default"] + cache-from = cache_from("php86-apache") + cache-to = cache_to("php86-apache") + tags = tag("8.6", "apache") + dockerfile = "Dockerfile.apache" + args = { + VARIANT = "apache" + } + contexts = { + slim-with-extensions = "target:php86-slim-apache-with-extensions" + } +} + +# thecodingmachine/php:8.6-v5-apache-node26 +target "php86-apache-node26" { + inherits = ["default"] + cache-from = cache_from("php86-apache-node26") + cache-to = cache_to("php86-apache-node26") + tags = tag("8.6", "apache-node26") + dockerfile = "Dockerfile.apache.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "apache-node26" + FROM_IMAGE = "fat" + NODE_VERSION = "26" + } + contexts = { + fat = "target:php86-apache" + } +} + +# thecodingmachine/php:8.6-v5-apache-node24 +target "php86-apache-node24" { + inherits = ["default"] + cache-from = cache_from("php86-apache-node24") + cache-to = cache_to("php86-apache-node24") + tags = tag("8.6", "apache-node24") + dockerfile = "Dockerfile.apache.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "apache-node24" + FROM_IMAGE = "fat" + NODE_VERSION = "24" + } + contexts = { + fat = "target:php86-apache" + } +} + +# thecodingmachine/php:8.6-v5-apache-node22 +target "php86-apache-node22" { + inherits = ["default"] + cache-from = cache_from("php86-apache-node22") + cache-to = cache_to("php86-apache-node22") + tags = tag("8.6", "apache-node22") + dockerfile = "Dockerfile.apache.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "apache-node22" + FROM_IMAGE = "fat" + NODE_VERSION = "22" + } + contexts = { + fat = "target:php86-apache" + } +} + +# thecodingmachine/php:8.6-v5-apache-node20 +target "php86-apache-node20" { + inherits = ["default"] + cache-from = cache_from("php86-apache-node20") + cache-to = cache_to("php86-apache-node20") + tags = tag("8.6", "apache-node20") + dockerfile = "Dockerfile.apache.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "apache-node20" + FROM_IMAGE = "fat" + NODE_VERSION = "20" + } + contexts = { + fat = "target:php86-apache" + } +} + +# thecodingmachine/php:8.6-v5-apache-node18 +target "php86-apache-node18" { + inherits = ["default"] + cache-from = cache_from("php86-apache-node18") + cache-to = cache_to("php86-apache-node18") + tags = tag("8.6", "apache-node18") + dockerfile = "Dockerfile.apache.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "apache-node18" + FROM_IMAGE = "fat" + NODE_VERSION = "18" + } + contexts = { + fat = "target:php86-apache" + } +} + +# thecodingmachine/php:8.6-v5-slim-fpm +target "php86-slim-fpm" { + inherits = ["default"] + cache-from = cache_from("php86-slim-fpm") + cache-to = cache_to("php86-slim-fpm") + tags = tag("8.6", "slim-fpm") + dockerfile = "Dockerfile.slim.fpm" + args = { + VARIANT = "fpm" + } + contexts = { + base = "target:php86-base" + } +} + +# The slim image of the variant with the extensions (not published) +target "php86-slim-fpm-with-extensions" { + inherits = ["default"] + cache-from = cache_from("php86-slim-fpm-with-extensions") + cache-to = cache_to("php86-slim-fpm-with-extensions") + dockerfile = "Dockerfile.slim.fpm" + args = { + VARIANT = "fpm" + } + output = ["type=cacheonly"] + contexts = { + base = "target:php86-extensions" + } +} + +# thecodingmachine/php:8.6-v5-fpm +target "php86-fpm" { + inherits = ["default"] + cache-from = cache_from("php86-fpm") + cache-to = cache_to("php86-fpm") + tags = tag("8.6", "fpm") + dockerfile = "Dockerfile.fpm" + args = { + VARIANT = "fpm" + } + contexts = { + slim-with-extensions = "target:php86-slim-fpm-with-extensions" + } +} + +# thecodingmachine/php:8.6-v5-fpm-node26 +target "php86-fpm-node26" { + inherits = ["default"] + cache-from = cache_from("php86-fpm-node26") + cache-to = cache_to("php86-fpm-node26") + tags = tag("8.6", "fpm-node26") + dockerfile = "Dockerfile.fpm.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "fpm-node26" + FROM_IMAGE = "fat" + NODE_VERSION = "26" + } + contexts = { + fat = "target:php86-fpm" + } +} + +# thecodingmachine/php:8.6-v5-fpm-node24 +target "php86-fpm-node24" { + inherits = ["default"] + cache-from = cache_from("php86-fpm-node24") + cache-to = cache_to("php86-fpm-node24") + tags = tag("8.6", "fpm-node24") + dockerfile = "Dockerfile.fpm.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "fpm-node24" + FROM_IMAGE = "fat" + NODE_VERSION = "24" + } + contexts = { + fat = "target:php86-fpm" + } +} + +# thecodingmachine/php:8.6-v5-fpm-node22 +target "php86-fpm-node22" { + inherits = ["default"] + cache-from = cache_from("php86-fpm-node22") + cache-to = cache_to("php86-fpm-node22") + tags = tag("8.6", "fpm-node22") + dockerfile = "Dockerfile.fpm.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "fpm-node22" + FROM_IMAGE = "fat" + NODE_VERSION = "22" + } + contexts = { + fat = "target:php86-fpm" + } +} + +# thecodingmachine/php:8.6-v5-fpm-node20 +target "php86-fpm-node20" { + inherits = ["default"] + cache-from = cache_from("php86-fpm-node20") + cache-to = cache_to("php86-fpm-node20") + tags = tag("8.6", "fpm-node20") + dockerfile = "Dockerfile.fpm.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "fpm-node20" + FROM_IMAGE = "fat" + NODE_VERSION = "20" + } + contexts = { + fat = "target:php86-fpm" + } +} + +# thecodingmachine/php:8.6-v5-fpm-node18 +target "php86-fpm-node18" { + inherits = ["default"] + cache-from = cache_from("php86-fpm-node18") + cache-to = cache_to("php86-fpm-node18") + tags = tag("8.6", "fpm-node18") + dockerfile = "Dockerfile.fpm.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "fpm-node18" + FROM_IMAGE = "fat" + NODE_VERSION = "18" + } + contexts = { + fat = "target:php86-fpm" + } +} + +# thecodingmachine/php:8.6-v5-slim-cli +target "php86-slim-cli" { + inherits = ["default"] + cache-from = cache_from("php86-slim-cli") + cache-to = cache_to("php86-slim-cli") + tags = tag("8.6", "slim-cli") + dockerfile = "Dockerfile.slim.cli" + args = { + VARIANT = "cli" + } + contexts = { + base = "target:php86-base" + } +} + +# The slim image of the variant with the extensions (not published) +target "php86-slim-cli-with-extensions" { + inherits = ["default"] + cache-from = cache_from("php86-slim-cli-with-extensions") + cache-to = cache_to("php86-slim-cli-with-extensions") + dockerfile = "Dockerfile.slim.cli" + args = { + VARIANT = "cli" + } + output = ["type=cacheonly"] + contexts = { + base = "target:php86-extensions" + } +} + +# thecodingmachine/php:8.6-v5-cli +target "php86-cli" { + inherits = ["default"] + cache-from = cache_from("php86-cli") + cache-to = cache_to("php86-cli") + tags = tag("8.6", "cli") + dockerfile = "Dockerfile.cli" + args = { + VARIANT = "cli" + } + contexts = { + slim-with-extensions = "target:php86-slim-cli-with-extensions" + } +} + +# thecodingmachine/php:8.6-v5-cli-node26 +target "php86-cli-node26" { + inherits = ["default"] + cache-from = cache_from("php86-cli-node26") + cache-to = cache_to("php86-cli-node26") + tags = tag("8.6", "cli-node26") + dockerfile = "Dockerfile.cli.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "cli-node26" + FROM_IMAGE = "fat" + NODE_VERSION = "26" + } + contexts = { + fat = "target:php86-cli" + } +} + +# thecodingmachine/php:8.6-v5-cli-node24 +target "php86-cli-node24" { + inherits = ["default"] + cache-from = cache_from("php86-cli-node24") + cache-to = cache_to("php86-cli-node24") + tags = tag("8.6", "cli-node24") + dockerfile = "Dockerfile.cli.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "cli-node24" + FROM_IMAGE = "fat" + NODE_VERSION = "24" + } + contexts = { + fat = "target:php86-cli" + } +} + +# thecodingmachine/php:8.6-v5-cli-node22 +target "php86-cli-node22" { + inherits = ["default"] + cache-from = cache_from("php86-cli-node22") + cache-to = cache_to("php86-cli-node22") + tags = tag("8.6", "cli-node22") + dockerfile = "Dockerfile.cli.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "cli-node22" + FROM_IMAGE = "fat" + NODE_VERSION = "22" + } + contexts = { + fat = "target:php86-cli" + } +} + +# thecodingmachine/php:8.6-v5-cli-node20 +target "php86-cli-node20" { + inherits = ["default"] + cache-from = cache_from("php86-cli-node20") + cache-to = cache_to("php86-cli-node20") + tags = tag("8.6", "cli-node20") + dockerfile = "Dockerfile.cli.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "cli-node20" + FROM_IMAGE = "fat" + NODE_VERSION = "20" + } + contexts = { + fat = "target:php86-cli" + } +} + +# thecodingmachine/php:8.6-v5-cli-node18 +target "php86-cli-node18" { + inherits = ["default"] + cache-from = cache_from("php86-cli-node18") + cache-to = cache_to("php86-cli-node18") + tags = tag("8.6", "cli-node18") + dockerfile = "Dockerfile.cli.node" + args = { + PHP_VERSION = "8.6" + VARIANT = "cli-node18" + FROM_IMAGE = "fat" + NODE_VERSION = "18" + } + contexts = { + fat = "target:php86-cli" + } +} + ########################### ## PHP 8.5 ########################### diff --git a/docs/extensions.md b/docs/extensions.md index 8057d628..320e1a06 100644 --- a/docs/extensions.md +++ b/docs/extensions.md @@ -32,6 +32,7 @@ This list can be outdated, you can verify it with: `docker run --rm thecodingmac **Notes:** - *ev* is not available in PHP 8.1+ +- *swoole* is not available in PHP 8.6: swoole does not support it yet - *mcrypt* is deprecated and its usage is discouraged: it is provided for legacy applications only - *imagick* supports SVG, WMF, DjVu and OpenEXR images in addition to the common formats. If you process untrusted images, you can restrict the allowed formats in the ImageMagick policy (`/etc/ImageMagick-6/policy.xml`) diff --git a/extensions/8.6/amqp b/extensions/8.6/amqp new file mode 120000 index 00000000..f66005fc --- /dev/null +++ b/extensions/8.6/amqp @@ -0,0 +1 @@ +../core/amqp \ No newline at end of file diff --git a/extensions/8.6/apcu b/extensions/8.6/apcu new file mode 120000 index 00000000..ddbb93d6 --- /dev/null +++ b/extensions/8.6/apcu @@ -0,0 +1 @@ +../core/apcu \ No newline at end of file diff --git a/extensions/8.6/ast b/extensions/8.6/ast new file mode 120000 index 00000000..5241c003 --- /dev/null +++ b/extensions/8.6/ast @@ -0,0 +1 @@ +../core/ast \ No newline at end of file diff --git a/extensions/8.6/bcmath b/extensions/8.6/bcmath new file mode 120000 index 00000000..36953ef1 --- /dev/null +++ b/extensions/8.6/bcmath @@ -0,0 +1 @@ +../core/bcmath \ No newline at end of file diff --git a/extensions/8.6/blackfire b/extensions/8.6/blackfire new file mode 120000 index 00000000..1179c0b9 --- /dev/null +++ b/extensions/8.6/blackfire @@ -0,0 +1 @@ +../core/blackfire \ No newline at end of file diff --git a/extensions/8.6/bz2 b/extensions/8.6/bz2 new file mode 120000 index 00000000..34eaa01d --- /dev/null +++ b/extensions/8.6/bz2 @@ -0,0 +1 @@ +../core/bz2 \ No newline at end of file diff --git a/extensions/8.6/dba b/extensions/8.6/dba new file mode 120000 index 00000000..f9598d4d --- /dev/null +++ b/extensions/8.6/dba @@ -0,0 +1 @@ +../core/dba \ No newline at end of file diff --git a/extensions/8.6/decimal b/extensions/8.6/decimal new file mode 120000 index 00000000..cbe7097d --- /dev/null +++ b/extensions/8.6/decimal @@ -0,0 +1 @@ +../core/decimal \ No newline at end of file diff --git a/extensions/8.6/disable_all.sh b/extensions/8.6/disable_all.sh new file mode 120000 index 00000000..36f58a80 --- /dev/null +++ b/extensions/8.6/disable_all.sh @@ -0,0 +1 @@ +../core/disable_all.sh \ No newline at end of file diff --git a/extensions/8.6/docker-install.sh b/extensions/8.6/docker-install.sh new file mode 120000 index 00000000..245891f8 --- /dev/null +++ b/extensions/8.6/docker-install.sh @@ -0,0 +1 @@ +../core/docker-install.sh \ No newline at end of file diff --git a/extensions/8.6/ds b/extensions/8.6/ds new file mode 120000 index 00000000..edbe1af6 --- /dev/null +++ b/extensions/8.6/ds @@ -0,0 +1 @@ +../core/ds \ No newline at end of file diff --git a/extensions/8.6/enchant b/extensions/8.6/enchant new file mode 120000 index 00000000..aa197129 --- /dev/null +++ b/extensions/8.6/enchant @@ -0,0 +1 @@ +../core/enchant \ No newline at end of file diff --git a/extensions/8.6/excimer b/extensions/8.6/excimer new file mode 120000 index 00000000..4e099313 --- /dev/null +++ b/extensions/8.6/excimer @@ -0,0 +1 @@ +../core/excimer \ No newline at end of file diff --git a/extensions/8.6/ffi b/extensions/8.6/ffi new file mode 120000 index 00000000..bcd5f3f1 --- /dev/null +++ b/extensions/8.6/ffi @@ -0,0 +1 @@ +../core/ffi \ No newline at end of file diff --git a/extensions/8.6/gd b/extensions/8.6/gd new file mode 120000 index 00000000..c4cfd1f9 --- /dev/null +++ b/extensions/8.6/gd @@ -0,0 +1 @@ +../core/gd \ No newline at end of file diff --git a/extensions/8.6/gettext b/extensions/8.6/gettext new file mode 120000 index 00000000..0369641a --- /dev/null +++ b/extensions/8.6/gettext @@ -0,0 +1 @@ +../core/gettext \ No newline at end of file diff --git a/extensions/8.6/gmp b/extensions/8.6/gmp new file mode 120000 index 00000000..d3dce5ec --- /dev/null +++ b/extensions/8.6/gmp @@ -0,0 +1 @@ +../core/gmp \ No newline at end of file diff --git a/extensions/8.6/gnupg b/extensions/8.6/gnupg new file mode 120000 index 00000000..002cc7b2 --- /dev/null +++ b/extensions/8.6/gnupg @@ -0,0 +1 @@ +../core/gnupg \ No newline at end of file diff --git a/extensions/8.6/grpc b/extensions/8.6/grpc new file mode 120000 index 00000000..57533a58 --- /dev/null +++ b/extensions/8.6/grpc @@ -0,0 +1 @@ +../core/grpc \ No newline at end of file diff --git a/extensions/8.6/igbinary b/extensions/8.6/igbinary new file mode 120000 index 00000000..c57a5ab9 --- /dev/null +++ b/extensions/8.6/igbinary @@ -0,0 +1 @@ +../core/igbinary \ No newline at end of file diff --git a/extensions/8.6/imagick b/extensions/8.6/imagick new file mode 120000 index 00000000..a55b99bc --- /dev/null +++ b/extensions/8.6/imagick @@ -0,0 +1 @@ +../core/imagick \ No newline at end of file diff --git a/extensions/8.6/imap b/extensions/8.6/imap new file mode 120000 index 00000000..4ee55a28 --- /dev/null +++ b/extensions/8.6/imap @@ -0,0 +1 @@ +../core/imap \ No newline at end of file diff --git a/extensions/8.6/inotify b/extensions/8.6/inotify new file mode 120000 index 00000000..d1a857c1 --- /dev/null +++ b/extensions/8.6/inotify @@ -0,0 +1 @@ +../core/inotify \ No newline at end of file diff --git a/extensions/8.6/install_all.sh b/extensions/8.6/install_all.sh new file mode 120000 index 00000000..615edbef --- /dev/null +++ b/extensions/8.6/install_all.sh @@ -0,0 +1 @@ +../core/install_all.sh \ No newline at end of file diff --git a/extensions/8.6/intl b/extensions/8.6/intl new file mode 120000 index 00000000..dd21da0b --- /dev/null +++ b/extensions/8.6/intl @@ -0,0 +1 @@ +../core/intl \ No newline at end of file diff --git a/extensions/8.6/ldap b/extensions/8.6/ldap new file mode 120000 index 00000000..394c7519 --- /dev/null +++ b/extensions/8.6/ldap @@ -0,0 +1 @@ +../core/ldap \ No newline at end of file diff --git a/extensions/8.6/lz4 b/extensions/8.6/lz4 new file mode 120000 index 00000000..5922a3b4 --- /dev/null +++ b/extensions/8.6/lz4 @@ -0,0 +1 @@ +../core/lz4 \ No newline at end of file diff --git a/extensions/8.6/mailparse b/extensions/8.6/mailparse new file mode 120000 index 00000000..e29c74c5 --- /dev/null +++ b/extensions/8.6/mailparse @@ -0,0 +1 @@ +../core/mailparse \ No newline at end of file diff --git a/extensions/8.6/mcrypt b/extensions/8.6/mcrypt new file mode 120000 index 00000000..f548d014 --- /dev/null +++ b/extensions/8.6/mcrypt @@ -0,0 +1 @@ +../core/mcrypt \ No newline at end of file diff --git a/extensions/8.6/memcached b/extensions/8.6/memcached new file mode 120000 index 00000000..13f2ea8c --- /dev/null +++ b/extensions/8.6/memcached @@ -0,0 +1 @@ +../core/memcached \ No newline at end of file diff --git a/extensions/8.6/mongodb b/extensions/8.6/mongodb new file mode 120000 index 00000000..7898c8e7 --- /dev/null +++ b/extensions/8.6/mongodb @@ -0,0 +1 @@ +../core/mongodb \ No newline at end of file diff --git a/extensions/8.6/msgpack b/extensions/8.6/msgpack new file mode 120000 index 00000000..2a72eaa8 --- /dev/null +++ b/extensions/8.6/msgpack @@ -0,0 +1 @@ +../core/msgpack \ No newline at end of file diff --git a/extensions/8.6/mysqli b/extensions/8.6/mysqli new file mode 120000 index 00000000..401b7fbf --- /dev/null +++ b/extensions/8.6/mysqli @@ -0,0 +1 @@ +../core/pdo_mysql \ No newline at end of file diff --git a/extensions/8.6/odbc b/extensions/8.6/odbc new file mode 120000 index 00000000..32fcd6ce --- /dev/null +++ b/extensions/8.6/odbc @@ -0,0 +1 @@ +../core/odbc \ No newline at end of file diff --git a/extensions/8.6/opentelemetry b/extensions/8.6/opentelemetry new file mode 120000 index 00000000..83446fe2 --- /dev/null +++ b/extensions/8.6/opentelemetry @@ -0,0 +1 @@ +../core/opentelemetry \ No newline at end of file diff --git a/extensions/8.6/pcov b/extensions/8.6/pcov new file mode 120000 index 00000000..b99a0dd2 --- /dev/null +++ b/extensions/8.6/pcov @@ -0,0 +1 @@ +../core/pcov \ No newline at end of file diff --git a/extensions/8.6/pdo_dblib b/extensions/8.6/pdo_dblib new file mode 120000 index 00000000..2261140c --- /dev/null +++ b/extensions/8.6/pdo_dblib @@ -0,0 +1 @@ +../core/pdo_dblib \ No newline at end of file diff --git a/extensions/8.6/pdo_mysql b/extensions/8.6/pdo_mysql new file mode 120000 index 00000000..401b7fbf --- /dev/null +++ b/extensions/8.6/pdo_mysql @@ -0,0 +1 @@ +../core/pdo_mysql \ No newline at end of file diff --git a/extensions/8.6/pdo_odbc b/extensions/8.6/pdo_odbc new file mode 120000 index 00000000..32fcd6ce --- /dev/null +++ b/extensions/8.6/pdo_odbc @@ -0,0 +1 @@ +../core/odbc \ No newline at end of file diff --git a/extensions/8.6/pdo_pgsql b/extensions/8.6/pdo_pgsql new file mode 120000 index 00000000..3a0bda2d --- /dev/null +++ b/extensions/8.6/pdo_pgsql @@ -0,0 +1 @@ +../core/pdo_pgsql \ No newline at end of file diff --git a/extensions/8.6/pdo_sqlite b/extensions/8.6/pdo_sqlite new file mode 120000 index 00000000..84c26578 --- /dev/null +++ b/extensions/8.6/pdo_sqlite @@ -0,0 +1 @@ +../core/pdo_sqlite \ No newline at end of file diff --git a/extensions/8.6/pgsql b/extensions/8.6/pgsql new file mode 120000 index 00000000..3a0bda2d --- /dev/null +++ b/extensions/8.6/pgsql @@ -0,0 +1 @@ +../core/pdo_pgsql \ No newline at end of file diff --git a/extensions/8.6/pspell b/extensions/8.6/pspell new file mode 120000 index 00000000..9be96fd9 --- /dev/null +++ b/extensions/8.6/pspell @@ -0,0 +1 @@ +../core/pspell \ No newline at end of file diff --git a/extensions/8.6/rdkafka b/extensions/8.6/rdkafka new file mode 120000 index 00000000..8fce5d9f --- /dev/null +++ b/extensions/8.6/rdkafka @@ -0,0 +1 @@ +../core/rdkafka/ \ No newline at end of file diff --git a/extensions/8.6/redis b/extensions/8.6/redis new file mode 120000 index 00000000..0727c021 --- /dev/null +++ b/extensions/8.6/redis @@ -0,0 +1 @@ +../core/redis \ No newline at end of file diff --git a/extensions/8.6/snmp b/extensions/8.6/snmp new file mode 120000 index 00000000..f2249ffe --- /dev/null +++ b/extensions/8.6/snmp @@ -0,0 +1 @@ +../core/snmp \ No newline at end of file diff --git a/extensions/8.6/soap b/extensions/8.6/soap new file mode 120000 index 00000000..ea63abf6 --- /dev/null +++ b/extensions/8.6/soap @@ -0,0 +1 @@ +../core/soap \ No newline at end of file diff --git a/extensions/8.6/sqlite3 b/extensions/8.6/sqlite3 new file mode 120000 index 00000000..84c26578 --- /dev/null +++ b/extensions/8.6/sqlite3 @@ -0,0 +1 @@ +../core/pdo_sqlite \ No newline at end of file diff --git a/extensions/8.6/tidy b/extensions/8.6/tidy new file mode 120000 index 00000000..e0434e64 --- /dev/null +++ b/extensions/8.6/tidy @@ -0,0 +1 @@ +../core/tidy \ No newline at end of file diff --git a/extensions/8.6/uploadprogress b/extensions/8.6/uploadprogress new file mode 120000 index 00000000..6b4b74d0 --- /dev/null +++ b/extensions/8.6/uploadprogress @@ -0,0 +1 @@ +../core/uploadprogress \ No newline at end of file diff --git a/extensions/8.6/uuid b/extensions/8.6/uuid new file mode 120000 index 00000000..7a522046 --- /dev/null +++ b/extensions/8.6/uuid @@ -0,0 +1 @@ +../core/uuid \ No newline at end of file diff --git a/extensions/8.6/xdebug b/extensions/8.6/xdebug new file mode 120000 index 00000000..2ee34925 --- /dev/null +++ b/extensions/8.6/xdebug @@ -0,0 +1 @@ +../core/xdebug \ No newline at end of file diff --git a/extensions/8.6/xmlrpc b/extensions/8.6/xmlrpc new file mode 120000 index 00000000..2833c799 --- /dev/null +++ b/extensions/8.6/xmlrpc @@ -0,0 +1 @@ +../core/xmlrpc \ No newline at end of file diff --git a/extensions/8.6/yaml b/extensions/8.6/yaml new file mode 120000 index 00000000..4be2658a --- /dev/null +++ b/extensions/8.6/yaml @@ -0,0 +1 @@ +../core/yaml \ No newline at end of file diff --git a/extensions/8.6/zip b/extensions/8.6/zip new file mode 120000 index 00000000..98c05831 --- /dev/null +++ b/extensions/8.6/zip @@ -0,0 +1 @@ +../core/zip \ No newline at end of file diff --git a/extensions/8.6/zstd b/extensions/8.6/zstd new file mode 120000 index 00000000..b65d02b6 --- /dev/null +++ b/extensions/8.6/zstd @@ -0,0 +1 @@ +../core/zstd \ No newline at end of file diff --git a/tests-suite/config b/tests-suite/config index f1895fd4..6ae49fa3 100755 --- a/tests-suite/config +++ b/tests-suite/config @@ -11,6 +11,13 @@ export REPO="${REPO:-thecodingmachine/php}" export TAG_PREFIX="${TAG_PREFIX:-}" export SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +# Extensions shipped for PHP_VERSION: extensions/ only lists those packaged by sury for this version +function has_extension() { + [[ -e "${SCRIPT_DIR}/../extensions/${PHP_VERSION}/$1" ]] && return 0 + >&2 echo "Extension $1 not available for PHP ${PHP_VERSION}: check skipped" + return 1 +} + function unused_port() { N=${1:-1} comm -23 \ diff --git a/tests-suite/php-blackfire.sh b/tests-suite/php-blackfire.sh index b68859be..0f7871f5 100755 --- a/tests-suite/php-blackfire.sh +++ b/tests-suite/php-blackfire.sh @@ -8,6 +8,7 @@ test_enable() { assert_equals "0" "$?" } test_alertConflictWithXDebug() { + has_extension xdebug || return 0 # Tests that blackfire + xdebug will output an error RESULT="$(docker run ${RUN_OPTIONS} --rm -e PHP_EXTENSION_XDEBUG=1 -e PHP_EXTENSION_BLACKFIRE=1 \ "${REPO}:${TAG_PREFIX}${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT}${ARCH_SUFFIX}" \ diff --git a/tests-suite/php-extensions.sh b/tests-suite/php-extensions.sh index 34512e6d..f15f5058 100755 --- a/tests-suite/php-extensions.sh +++ b/tests-suite/php-extensions.sh @@ -18,9 +18,20 @@ test_presenceOfPDO() { assert_equals "PDO" "${RESULT}" "Missing php-PDO" } ################################################################# +## Let's check that the default extensions of fat are enabled +################################################################# +test_defaultExtensionsOnFat() { + MODULES=$(docker run ${RUN_OPTIONS} --rm "${REPO}:${TAG_PREFIX}${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT}${ARCH_SUFFIX}" php -m 2>&1 | tail -n +1) + for EXTENSION in apcu igbinary redis mysqli pdo_mysql soap; do + RESULT=$(echo "${MODULES}" | grep --color=never -x "${EXTENSION}") + assert_equals "${EXTENSION}" "${RESULT}" "Missing php-${EXTENSION}" + done +} +################################################################# ## Let's check that uploadprogress is enabled explicitly with fat ################################################################# test_presenceOfUploadprogressOnFat() { + has_extension uploadprogress || return 0 RESULT=$(docker run ${RUN_OPTIONS} -e "PHP_EXTENSIONS=uploadprogress" --rm "${REPO}:${TAG_PREFIX}${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT}${ARCH_SUFFIX}" php -m | tail -n +1 | grep --color=never uploadprogress) assert_equals "uploadprogress" "${RESULT}" "Missing php-uploadprogress" } @@ -28,6 +39,7 @@ test_presenceOfUploadprogressOnFat() { ## Let's check that Imagick can read SVG images on fat ################################################################### test_imagickSvgOnFat() { + has_extension imagick || return 0 RESULT=$(docker run ${RUN_OPTIONS} -e "PHP_EXTENSIONS=imagick" --rm "${REPO}:${TAG_PREFIX}${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT}${ARCH_SUFFIX}" \ php -r 'echo in_array("SVG", Imagick::queryFormats(), true) ? "SVG" : "missing";' 2>&1) assert_equals "SVG" "${RESULT}" "Imagick cannot read SVG images" @@ -56,6 +68,9 @@ test_presenceOfPhp82ExtensionsOnFat() { if [[ "$(printf '%s\n' "$PHP_VERSION" "8.2" | sort -V | head -n 1)" != "8.2" ]]; then return 0; fi # Extension name in PHP_EXTENSIONS => name displayed by "php -m" declare -A EXTENSIONS=([gnupg]=gnupg [mcrypt]=mcrypt [odbc]=odbc [pdo_odbc]=PDO_ODBC [zstd]=zstd [lz4]=lz4 [decimal]=decimal [inotify]=inotify [opentelemetry]=opentelemetry) + for EXTENSION in "${!EXTENSIONS[@]}"; do + has_extension "${EXTENSION}" || unset "EXTENSIONS[${EXTENSION}]" + done MODULES=$(docker run ${RUN_OPTIONS} -e "PHP_EXTENSIONS=${!EXTENSIONS[*]}" --rm "${REPO}:${TAG_PREFIX}${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT}${ARCH_SUFFIX}" php -m | tail -n +1) for EXTENSION in "${!EXTENSIONS[@]}"; do RESULT=$(echo "${MODULES}" | grep --color=never -x "${EXTENSIONS[$EXTENSION]}") @@ -67,6 +82,7 @@ test_presenceOfPhp82ExtensionsOnFat() { ## extension are enabled too (even if explicitly disabled) ################################################################# test_dependenciesOfExtensionsOnFat() { + has_extension memcached && has_extension mailparse || return 0 MODULES=$(docker run ${RUN_OPTIONS} -e "PHP_EXTENSIONS=memcached mailparse" -e PHP_EXTENSION_IGBINARY=0 -e PHP_EXTENSION_MBSTRING=0 \ --rm "${REPO}:${TAG_PREFIX}${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT}${ARCH_SUFFIX}" php -m 2>&1 | tail -n +1) assert_equals "0" "$(echo "${MODULES}" | grep -c 'Unable to load dynamic library')" "An extension cannot be loaded" diff --git a/tests-suite/php-xdebug.sh b/tests-suite/php-xdebug.sh index 81a5b44b..9d452908 100755 --- a/tests-suite/php-xdebug.sh +++ b/tests-suite/php-xdebug.sh @@ -5,6 +5,7 @@ ## xdebug ############################################################ test_config() { + has_extension xdebug || return 0 # Docker Engine: the gateway of the container RESULT=$(docker run ${RUN_OPTIONS} --rm -e PHP_EXTENSION_XDEBUG=1 "${REPO}:${TAG_PREFIX}${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT}${ARCH_SUFFIX}" \ php -r 'echo ini_get("xdebug.client_host");') diff --git a/utils/Dockerfile.base.blueprint b/utils/Dockerfile.base.blueprint index f04dbf38..91b4bea7 100644 --- a/utils/Dockerfile.base.blueprint +++ b/utils/Dockerfile.base.blueprint @@ -64,7 +64,7 @@ RUN apt update \ ARG PHP_PACKAGE_VERSION="" # Note: From PHP 8.5, opcache is built-in and php${PHP_VERSION}-opcache package doesn't exist RUN OPCACHE_PACKAGE="" \ - && if [ "${PHP_VERSION}" != "8.5" ]; then \ + && if [ "$(printf '%s\n' "${PHP_VERSION}" 8.5 | sort -V | head -n 1)" != "8.5" ]; then \ OPCACHE_PACKAGE="php${PHP_VERSION}-opcache"; \ fi \ && apt update \ diff --git a/utils/README.blueprint.md b/utils/README.blueprint.md index 04f55df2..0598873f 100644 --- a/utils/README.blueprint.md +++ b/utils/README.blueprint.md @@ -24,7 +24,7 @@ See the [documentation](#documentation) for all the features. {{ $image := .Orbit.Images }} ## Images -{{ $versions := list "8.5" "8.4" "8.3" "8.2" "8.1" }} +{{ $versions := list "8.6" "8.5" "8.4" "8.3" "8.2" "8.1" }} {{ $nodeVersions := list "22" "24" "26" }}{{ $legacyVersions := list "8.1" }}{{ $legacyNodeVersions := list "20" "22" "24" "26" }} | Name | PHP version | type |variant | NodeJS version | Size @@ -56,6 +56,7 @@ Bugs are fixed on maintained versions only. | PHP version | Status | |-------------|-----------------------------------------------| +| 8.6 | Maintained (until 2030-12-31) | | 8.5 | Maintained (until 2029-12-31) | | 8.4 | Maintained (until 2028-12-31) | | 8.3 | Maintained (until 2027-12-31) | diff --git a/utils/docker-bake.blueprint.hcl b/utils/docker-bake.blueprint.hcl index 6937e77b..31f5e90e 100644 --- a/utils/docker-bake.blueprint.hcl +++ b/utils/docker-bake.blueprint.hcl @@ -1,4 +1,4 @@ -{{ $variants := list "apache" "fpm" "cli" }}{{ $versions := list "8.5" "8.4" "8.3" "8.2" "8.1" "8.0" "7.4" }}{{ $nodeVersions := list "26" "24" "22" }}{{ $legacyVersions := list "8.1" "8.0" "7.4" }}{{ $legacyNodeVersions := list "26" "24" "22" "20" "18" }}{{ $oldNodeVersions := list "20" "18" }} +{{ $variants := list "apache" "fpm" "cli" }}{{ $versions := list "8.6" "8.5" "8.4" "8.3" "8.2" "8.1" "8.0" "7.4" }}{{ $nodeVersions := list "26" "24" "22" }}{{ $legacyVersions := list "8.1" "8.0" "7.4" }}{{ $legacyNodeVersions := list "26" "24" "22" "20" "18" }}{{ $oldNodeVersions := list "20" "18" }} group "default" { targets = [ {{range $phpV := $versions}} From 89da260aa4aad48742be9cfa1d6fca43e6de15f5 Mon Sep 17 00:00:00 2001 From: Mistral OZ - MIO Date: Fri, 20 Nov 2026 15:13:54 +0100 Subject: [PATCH 2/2] Compare the extensions of a PHP version with the sury packages make sury-extensions VERSION=8.6 lists the extensions of 8.6 and of the previous version, their sury package on amd64 and arm64 (or the package that provides them, e.g. php8.6-common), and the symlinks to add to extensions/8.6 or that make its build fail. --- Makefile | 3 ++ docs/contributing.md | 4 +++ utils/sury-extensions.sh | 69 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100755 utils/sury-extensions.sh diff --git a/Makefile b/Makefile index 6560084d..07bec3d8 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,9 @@ _test-version-quick: _test-prerequisites ## Test php build for VERSION="" and VA PHP_VERSION="$(VERSION)" BRANCH=v5 VARIANT=$(VARIANT) ./tests-suite/bash_unit -f tap ./tests-suite/*.sh || (notify-send -u critical "Tests failed ($(VERSION)-$(VARIANT))" && exit 1) notify-send -u critical "Tests passed with success ($(VERSION)-$(VARIANT)) - without node-*" +sury-extensions: ## Compare the extensions of VERSION with the sury packages (e.g. make sury-extensions VERSION=8.6) + utils/sury-extensions.sh $(VERSION) + clean: ## Clean dangles image after build rm -rf /tmp/buildx-cache diff --git a/docs/contributing.md b/docs/contributing.md index b6165d1e..60fcad4c 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -69,3 +69,7 @@ groups of the maintained PHP versions) are built and tested by the `legacy-v5.ym - `.github/workflows/workflow.yml` (maintained versions) or `.github/workflows/legacy-v5.yml` (non-maintained versions): the CI matrix - `extensions/`: the extensions available for this PHP version + +Right after a PHP release, sury only publishes the extensions of the PHP source: the others come in the following +weeks. `make sury-extensions VERSION=8.6` compares `extensions/8.6` with `extensions/8.5` and with the packages of sury +on amd64 and arm64, and tells which symlinks to add, or which ones make the build fail. diff --git a/utils/sury-extensions.sh b/utils/sury-extensions.sh new file mode 100755 index 00000000..fd283537 --- /dev/null +++ b/utils/sury-extensions.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +# Compares the extensions of a PHP version (extensions/) with those of a reference version and with the +# packages published by sury for noble, on amd64 and arm64. Prints a Markdown table, with the symlink to add or remove. +# Exit code 1 when an extension of extensions/ has no package on an arch (the build of the version fails). +# Usage: utils/sury-extensions.sh [] +set -euo pipefail +cd "$(dirname "$0")/.." + +VERSION="$1" +REFERENCE="${2:-$(ls -d extensions/[0-9]* | xargs -n 1 basename | sort -V | grep -B 1 -x "${VERSION}" | head -n 1)}" +ARCHS="amd64 arm64" + +# php-* names of an arch: " package" for a package, " " when another package provides it +declare -A AVAILABLE +for ARCH in ${ARCHS}; do + while read -r NAME SOURCE; do + [[ "${SOURCE}" == package || -z "${AVAILABLE[${ARCH}/${NAME}]:-}" ]] && AVAILABLE["${ARCH}/${NAME}"]="${SOURCE}" + done < <(curl -fsS --retry 3 "https://packages.sury.org/php/dists/noble/main/binary-${ARCH}/Packages.gz" | gunzip \ + | awk -v prefix="php${VERSION}-" ' + $1 == "Package:" { package = $2; if (index(package, prefix) == 1) print package, "package" } + $1 == "Provides:" && index(package, prefix) == 1 { + sub(/^Provides: */, ""); n = split($0, provided, /, */) + for (i = 1; i <= n; i++) { split(provided[i], name, " "); if (index(name[1], prefix) == 1) print name[1], package } + }') +done + +# Package of an extension, read from its install.sh: PACKAGE_NAME, or else EXTENSION (empty for PECL or another source) +package_of() { + local dir install + for dir in "extensions/${VERSION}/$1" "extensions/${REFERENCE}/$1" "extensions/core/$1"; do + [[ -f "${dir}/install.sh" ]] && install="${dir}/install.sh" && break + done + [[ -n "${install:-}" ]] || return 0 + grep -oP '(^|\s)PACKAGE_NAME=\K[a-z0-9_]+' "${install}" | head -n 1 && return 0 + grep -oP '(^|\s)EXTENSION=\K[a-z0-9_]+' "${install}" | head -n 1 || true +} + +status_of() { + local name="php${VERSION}-$1" source="${AVAILABLE[$2/php${VERSION}-$1]:-}" + case "${source}" in + package) echo "${name}" ;; + "") echo "missing" ;; + *) echo "in ${source}" ;; + esac +} + +MISSING_LINKED=0 +echo "| Extension | ${REFERENCE} | ${VERSION} | sury amd64 | sury arm64 | To do |" +echo "|---|---|---|---|---|---|" +for EXT in $( (ls "extensions/${REFERENCE}"; ls "extensions/${VERSION}" 2>/dev/null) | grep -v '\.sh$' | sort -u); do + IN_REFERENCE=$([[ -e "extensions/${REFERENCE}/${EXT}" ]] && echo yes || echo no) + LINKED=$([[ -e "extensions/${VERSION}/${EXT}" ]] && echo yes || echo no) + PACKAGE=$(package_of "${EXT}") + if [[ -z "${PACKAGE}" ]]; then + echo "| ${EXT} | ${IN_REFERENCE} | ${LINKED} | not from sury | not from sury | |" + continue + fi + AMD64=$(status_of "${PACKAGE}" amd64) + ARM64=$(status_of "${PACKAGE}" arm64) + TODO="" + if [[ "${AMD64}" != missing && "${ARM64}" != missing && "${LINKED}" == no ]]; then + TODO="add the symlink" + elif [[ ( "${AMD64}" == missing || "${ARM64}" == missing ) && "${LINKED}" == yes ]]; then + TODO="**build fails**" + MISSING_LINKED=1 + fi + echo "| ${EXT} | ${IN_REFERENCE} | ${LINKED} | ${AMD64} | ${ARM64} | ${TODO} |" +done +exit "${MISSING_LINKED}"