From 8b64021dcc5e5a17e564ba667e4a65a02a356d0e Mon Sep 17 00:00:00 2001 From: George Steel Date: Tue, 30 Jul 2024 15:15:53 +0100 Subject: [PATCH] Initial support for PHP 8.4 Signed-off-by: George Steel --- Dockerfile | 16 ++++++++++++++++ README.md | 1 + scripts/php_ini_dev_settings.sh | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 709b043..1630689 100644 --- a/Dockerfile +++ b/Dockerfile @@ -253,6 +253,22 @@ RUN set -eux; \ php8.3-xml \ php8.3-xsl \ php8.3-zip \ + \ + php8.4-cli \ + php8.4-bcmath \ + php8.4-bz2 \ + php8.4-curl \ + php8.4-dev \ + php8.4-fileinfo \ + php8.4-intl \ + php8.4-mbstring \ + php8.4-phar \ + php8.4-phpdbg \ + php8.4-readline \ + php8.4-sockets \ + php8.4-xml \ + php8.4-xsl \ + php8.4-zip \ && apt autoremove -y \ && apt clean diff --git a/README.md b/README.md index 90e4627..e767b0c 100644 --- a/README.md +++ b/README.md @@ -267,6 +267,7 @@ The container the action provides and consumes builds off the ubuntu:focal image - 8.1 - 8.2 - 8.3 +- 8.4 Each provides the following extensions by default: diff --git a/scripts/php_ini_dev_settings.sh b/scripts/php_ini_dev_settings.sh index f3e68b1..7924ce2 100755 --- a/scripts/php_ini_dev_settings.sh +++ b/scripts/php_ini_dev_settings.sh @@ -14,7 +14,7 @@ SUBSTITUTIONS+=('s/mysqlnd.collect_memory_statistics ?= ?(On|Off)/mysqlnd.collec SUBSTITUTIONS+=('s/zend.assertions ?= ?(-1|1)/zend.assertions = 1/') SUBSTITUTIONS+=('s/opcache.huge_code_pages ?= ?(0|1)/opcache.huge_code_pages = 0/') -for PHP_VERSION in 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3;do +for PHP_VERSION in 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4;do for PHP_SAPI in cli phpdbg; do INI_FILE="/etc/php/${PHP_VERSION}/${PHP_SAPI}/php.ini" for SUBSTITUTION in "${SUBSTITUTIONS[@]}";do