diff --git a/Dockerfile.template b/Dockerfile.template index ec89d40fee..bbfac45696 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -133,19 +133,20 @@ RUN set -ex; \ # set recommended PHP.ini settings {{ if env.version != "cli" then ( -}} # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" {{ ) else ( -}} # excluding opcache due https://github.com/docker-library/wordpress/issues/407 {{ ) end -}} # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -157,7 +158,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" {{ if env.variant == "apache" then ( -}} RUN set -eux; \ diff --git a/beta/php8.2/apache/Dockerfile b/beta/php8.2/apache/Dockerfile index 38cb1737d3..d3ec7581dc 100644 --- a/beta/php8.2/apache/Dockerfile +++ b/beta/php8.2/apache/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ a2enmod rewrite expires; \ diff --git a/beta/php8.2/fpm-alpine/Dockerfile b/beta/php8.2/fpm-alpine/Dockerfile index b7e405419a..8d0270842e 100644 --- a/beta/php8.2/fpm-alpine/Dockerfile +++ b/beta/php8.2/fpm-alpine/Dockerfile @@ -76,16 +76,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -97,7 +98,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.9-RC3'; \ diff --git a/beta/php8.2/fpm/Dockerfile b/beta/php8.2/fpm/Dockerfile index ea8ff90a9d..08ba179638 100644 --- a/beta/php8.2/fpm/Dockerfile +++ b/beta/php8.2/fpm/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.9-RC3'; \ diff --git a/beta/php8.3/apache/Dockerfile b/beta/php8.3/apache/Dockerfile index 329ef88d33..7c047abc3c 100644 --- a/beta/php8.3/apache/Dockerfile +++ b/beta/php8.3/apache/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ a2enmod rewrite expires; \ diff --git a/beta/php8.3/fpm-alpine/Dockerfile b/beta/php8.3/fpm-alpine/Dockerfile index 1baad5e03f..fa7f9266d5 100644 --- a/beta/php8.3/fpm-alpine/Dockerfile +++ b/beta/php8.3/fpm-alpine/Dockerfile @@ -76,16 +76,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -97,7 +98,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.9-RC3'; \ diff --git a/beta/php8.3/fpm/Dockerfile b/beta/php8.3/fpm/Dockerfile index ab3c508a7d..182d86bd4d 100644 --- a/beta/php8.3/fpm/Dockerfile +++ b/beta/php8.3/fpm/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.9-RC3'; \ diff --git a/beta/php8.4/apache/Dockerfile b/beta/php8.4/apache/Dockerfile index 9e16e66d86..844beb8b10 100644 --- a/beta/php8.4/apache/Dockerfile +++ b/beta/php8.4/apache/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ a2enmod rewrite expires; \ diff --git a/beta/php8.4/fpm-alpine/Dockerfile b/beta/php8.4/fpm-alpine/Dockerfile index 6eb5c91a1d..96422b0bc4 100644 --- a/beta/php8.4/fpm-alpine/Dockerfile +++ b/beta/php8.4/fpm-alpine/Dockerfile @@ -76,16 +76,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -97,7 +98,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.9-RC3'; \ diff --git a/beta/php8.4/fpm/Dockerfile b/beta/php8.4/fpm/Dockerfile index cc677359c2..e5470ae9f0 100644 --- a/beta/php8.4/fpm/Dockerfile +++ b/beta/php8.4/fpm/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.9-RC3'; \ diff --git a/beta/php8.1/apache/Dockerfile b/beta/php8.5/apache/Dockerfile similarity index 96% rename from beta/php8.1/apache/Dockerfile rename to beta/php8.5/apache/Dockerfile index e8d44f8513..570a003004 100644 --- a/beta/php8.1/apache/Dockerfile +++ b/beta/php8.5/apache/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM php:8.1-apache +FROM php:8.5-apache # persistent dependencies RUN set -eux; \ @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ a2enmod rewrite expires; \ diff --git a/beta/php8.1/apache/docker-entrypoint.sh b/beta/php8.5/apache/docker-entrypoint.sh similarity index 100% rename from beta/php8.1/apache/docker-entrypoint.sh rename to beta/php8.5/apache/docker-entrypoint.sh diff --git a/beta/php8.1/apache/wp-config-docker.php b/beta/php8.5/apache/wp-config-docker.php similarity index 100% rename from beta/php8.1/apache/wp-config-docker.php rename to beta/php8.5/apache/wp-config-docker.php diff --git a/beta/php8.1/fpm-alpine/Dockerfile b/beta/php8.5/fpm-alpine/Dockerfile similarity index 95% rename from beta/php8.1/fpm-alpine/Dockerfile rename to beta/php8.5/fpm-alpine/Dockerfile index f5811695be..29de8285c5 100644 --- a/beta/php8.1/fpm-alpine/Dockerfile +++ b/beta/php8.5/fpm-alpine/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM php:8.1-fpm-alpine +FROM php:8.5-fpm-alpine # persistent dependencies RUN set -eux; \ @@ -76,16 +76,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -97,7 +98,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.9-RC3'; \ diff --git a/beta/php8.1/fpm-alpine/docker-entrypoint.sh b/beta/php8.5/fpm-alpine/docker-entrypoint.sh similarity index 100% rename from beta/php8.1/fpm-alpine/docker-entrypoint.sh rename to beta/php8.5/fpm-alpine/docker-entrypoint.sh diff --git a/beta/php8.1/fpm-alpine/wp-config-docker.php b/beta/php8.5/fpm-alpine/wp-config-docker.php similarity index 100% rename from beta/php8.1/fpm-alpine/wp-config-docker.php rename to beta/php8.5/fpm-alpine/wp-config-docker.php diff --git a/beta/php8.1/fpm/Dockerfile b/beta/php8.5/fpm/Dockerfile similarity index 95% rename from beta/php8.1/fpm/Dockerfile rename to beta/php8.5/fpm/Dockerfile index 27d9b31306..71e82a3f4c 100644 --- a/beta/php8.1/fpm/Dockerfile +++ b/beta/php8.5/fpm/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM php:8.1-fpm +FROM php:8.5-fpm # persistent dependencies RUN set -eux; \ @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.9-RC3'; \ diff --git a/beta/php8.1/fpm/docker-entrypoint.sh b/beta/php8.5/fpm/docker-entrypoint.sh similarity index 100% rename from beta/php8.1/fpm/docker-entrypoint.sh rename to beta/php8.5/fpm/docker-entrypoint.sh diff --git a/beta/php8.1/fpm/wp-config-docker.php b/beta/php8.5/fpm/wp-config-docker.php similarity index 100% rename from beta/php8.1/fpm/wp-config-docker.php rename to beta/php8.5/fpm/wp-config-docker.php diff --git a/cli/php8.2/alpine/Dockerfile b/cli/php8.2/alpine/Dockerfile index c52674def4..4b68621641 100644 --- a/cli/php8.2/alpine/Dockerfile +++ b/cli/php8.2/alpine/Dockerfile @@ -78,7 +78,8 @@ RUN set -ex; \ # set recommended PHP.ini settings # excluding opcache due https://github.com/docker-library/wordpress/issues/407 # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -90,7 +91,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" # https://make.wordpress.org/cli/2018/05/31/gpg-signature-change/ # pub rsa2048 2018-05-31 [SC] diff --git a/cli/php8.3/alpine/Dockerfile b/cli/php8.3/alpine/Dockerfile index 8fd438cde1..88f4a09ba9 100644 --- a/cli/php8.3/alpine/Dockerfile +++ b/cli/php8.3/alpine/Dockerfile @@ -78,7 +78,8 @@ RUN set -ex; \ # set recommended PHP.ini settings # excluding opcache due https://github.com/docker-library/wordpress/issues/407 # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -90,7 +91,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" # https://make.wordpress.org/cli/2018/05/31/gpg-signature-change/ # pub rsa2048 2018-05-31 [SC] diff --git a/cli/php8.4/alpine/Dockerfile b/cli/php8.4/alpine/Dockerfile index 8e66e65627..f386b8955b 100644 --- a/cli/php8.4/alpine/Dockerfile +++ b/cli/php8.4/alpine/Dockerfile @@ -78,7 +78,8 @@ RUN set -ex; \ # set recommended PHP.ini settings # excluding opcache due https://github.com/docker-library/wordpress/issues/407 # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -90,7 +91,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" # https://make.wordpress.org/cli/2018/05/31/gpg-signature-change/ # pub rsa2048 2018-05-31 [SC] diff --git a/cli/php8.1/alpine/Dockerfile b/cli/php8.5/alpine/Dockerfile similarity index 98% rename from cli/php8.1/alpine/Dockerfile rename to cli/php8.5/alpine/Dockerfile index 3c9cce78a5..9676a05a5b 100644 --- a/cli/php8.1/alpine/Dockerfile +++ b/cli/php8.5/alpine/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM php:8.1-alpine +FROM php:8.5-alpine # install wp-cli dependencies RUN apk add --no-cache \ @@ -78,7 +78,8 @@ RUN set -ex; \ # set recommended PHP.ini settings # excluding opcache due https://github.com/docker-library/wordpress/issues/407 # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -90,7 +91,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" # https://make.wordpress.org/cli/2018/05/31/gpg-signature-change/ # pub rsa2048 2018-05-31 [SC] diff --git a/cli/php8.1/alpine/docker-entrypoint.sh b/cli/php8.5/alpine/docker-entrypoint.sh similarity index 100% rename from cli/php8.1/alpine/docker-entrypoint.sh rename to cli/php8.5/alpine/docker-entrypoint.sh diff --git a/latest/php8.2/apache/Dockerfile b/latest/php8.2/apache/Dockerfile index 15cda0bec9..abfd2aad2d 100644 --- a/latest/php8.2/apache/Dockerfile +++ b/latest/php8.2/apache/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ a2enmod rewrite expires; \ diff --git a/latest/php8.2/fpm-alpine/Dockerfile b/latest/php8.2/fpm-alpine/Dockerfile index 0f821b9bd5..ca64e739dd 100644 --- a/latest/php8.2/fpm-alpine/Dockerfile +++ b/latest/php8.2/fpm-alpine/Dockerfile @@ -76,16 +76,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -97,7 +98,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.8.3'; \ diff --git a/latest/php8.2/fpm/Dockerfile b/latest/php8.2/fpm/Dockerfile index 9fe5bbd1ec..84eef83aa2 100644 --- a/latest/php8.2/fpm/Dockerfile +++ b/latest/php8.2/fpm/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.8.3'; \ diff --git a/latest/php8.3/apache/Dockerfile b/latest/php8.3/apache/Dockerfile index 43fd2d43af..78525b92c0 100644 --- a/latest/php8.3/apache/Dockerfile +++ b/latest/php8.3/apache/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ a2enmod rewrite expires; \ diff --git a/latest/php8.3/fpm-alpine/Dockerfile b/latest/php8.3/fpm-alpine/Dockerfile index 15239cf6bf..1c852021ab 100644 --- a/latest/php8.3/fpm-alpine/Dockerfile +++ b/latest/php8.3/fpm-alpine/Dockerfile @@ -76,16 +76,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -97,7 +98,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.8.3'; \ diff --git a/latest/php8.3/fpm/Dockerfile b/latest/php8.3/fpm/Dockerfile index 990d1518ee..df91d2ce2a 100644 --- a/latest/php8.3/fpm/Dockerfile +++ b/latest/php8.3/fpm/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.8.3'; \ diff --git a/latest/php8.4/apache/Dockerfile b/latest/php8.4/apache/Dockerfile index 060592b07e..b939b6b50b 100644 --- a/latest/php8.4/apache/Dockerfile +++ b/latest/php8.4/apache/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ a2enmod rewrite expires; \ diff --git a/latest/php8.4/fpm-alpine/Dockerfile b/latest/php8.4/fpm-alpine/Dockerfile index 33a920f531..b6fdad6f5b 100644 --- a/latest/php8.4/fpm-alpine/Dockerfile +++ b/latest/php8.4/fpm-alpine/Dockerfile @@ -76,16 +76,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -97,7 +98,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.8.3'; \ diff --git a/latest/php8.4/fpm/Dockerfile b/latest/php8.4/fpm/Dockerfile index bd85559b3c..7c352278ef 100644 --- a/latest/php8.4/fpm/Dockerfile +++ b/latest/php8.4/fpm/Dockerfile @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.8.3'; \ diff --git a/latest/php8.1/apache/Dockerfile b/latest/php8.5/apache/Dockerfile similarity index 96% rename from latest/php8.1/apache/Dockerfile rename to latest/php8.5/apache/Dockerfile index 696e787b53..0defe346b3 100644 --- a/latest/php8.1/apache/Dockerfile +++ b/latest/php8.5/apache/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM php:8.1-apache +FROM php:8.5-apache # persistent dependencies RUN set -eux; \ @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ a2enmod rewrite expires; \ diff --git a/latest/php8.1/apache/docker-entrypoint.sh b/latest/php8.5/apache/docker-entrypoint.sh similarity index 100% rename from latest/php8.1/apache/docker-entrypoint.sh rename to latest/php8.5/apache/docker-entrypoint.sh diff --git a/latest/php8.1/apache/wp-config-docker.php b/latest/php8.5/apache/wp-config-docker.php similarity index 100% rename from latest/php8.1/apache/wp-config-docker.php rename to latest/php8.5/apache/wp-config-docker.php diff --git a/latest/php8.1/fpm-alpine/Dockerfile b/latest/php8.5/fpm-alpine/Dockerfile similarity index 95% rename from latest/php8.1/fpm-alpine/Dockerfile rename to latest/php8.5/fpm-alpine/Dockerfile index 868d4f49c2..4d57c36973 100644 --- a/latest/php8.1/fpm-alpine/Dockerfile +++ b/latest/php8.5/fpm-alpine/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM php:8.1-fpm-alpine +FROM php:8.5-fpm-alpine # persistent dependencies RUN set -eux; \ @@ -76,16 +76,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -97,7 +98,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.8.3'; \ diff --git a/latest/php8.1/fpm-alpine/docker-entrypoint.sh b/latest/php8.5/fpm-alpine/docker-entrypoint.sh similarity index 100% rename from latest/php8.1/fpm-alpine/docker-entrypoint.sh rename to latest/php8.5/fpm-alpine/docker-entrypoint.sh diff --git a/latest/php8.1/fpm-alpine/wp-config-docker.php b/latest/php8.5/fpm-alpine/wp-config-docker.php similarity index 100% rename from latest/php8.1/fpm-alpine/wp-config-docker.php rename to latest/php8.5/fpm-alpine/wp-config-docker.php diff --git a/latest/php8.1/fpm/Dockerfile b/latest/php8.5/fpm/Dockerfile similarity index 95% rename from latest/php8.1/fpm/Dockerfile rename to latest/php8.5/fpm/Dockerfile index ad7b1d6ca7..2698e94a93 100644 --- a/latest/php8.1/fpm/Dockerfile +++ b/latest/php8.5/fpm/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM php:8.1-fpm +FROM php:8.5-fpm # persistent dependencies RUN set -eux; \ @@ -80,16 +80,17 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php +# enabled by default in the php images: https://github.com/docker-library/php/pull/1587 RUN set -eux; \ - docker-php-ext-enable opcache; \ { \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.revalidate_freq=2'; \ - } > /usr/local/etc/php/conf.d/opcache-recommended.ini + } > "$PHP_INI_DIR/conf.d/opcache-recommended.ini" # https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging -RUN { \ +RUN set -eux; \ + { \ # https://www.php.net/manual/en/errorfunc.constants.php # https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670 echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \ @@ -101,7 +102,7 @@ RUN { \ echo 'ignore_repeated_errors = On'; \ echo 'ignore_repeated_source = Off'; \ echo 'html_errors = Off'; \ - } > /usr/local/etc/php/conf.d/error-logging.ini + } > "$PHP_INI_DIR/conf.d/error-logging.ini" RUN set -eux; \ version='6.8.3'; \ diff --git a/latest/php8.1/fpm/docker-entrypoint.sh b/latest/php8.5/fpm/docker-entrypoint.sh similarity index 100% rename from latest/php8.1/fpm/docker-entrypoint.sh rename to latest/php8.5/fpm/docker-entrypoint.sh diff --git a/latest/php8.1/fpm/wp-config-docker.php b/latest/php8.5/fpm/wp-config-docker.php similarity index 100% rename from latest/php8.1/fpm/wp-config-docker.php rename to latest/php8.5/fpm/wp-config-docker.php diff --git a/versions.json b/versions.json index 9cec6ef410..fe575df1c4 100644 --- a/versions.json +++ b/versions.json @@ -1,10 +1,10 @@ { "beta": { "phpVersions": [ - "8.1", "8.2", "8.3", - "8.4" + "8.4", + "8.5" ], "sha1": "f98c7ce5304d9a3543101678e43a2622f76abcd9", "upstream": "6.9-RC3", @@ -17,10 +17,10 @@ }, "cli": { "phpVersions": [ - "8.1", "8.2", "8.3", - "8.4" + "8.4", + "8.5" ], "sha512": "be928f6b8ca1e8dfb9d2f4b75a13aa4aee0896f8a9a0a1c45cd5d2c98605e6172e6d014dda2e27f88c98befc16c040cbb2bd1bfa121510ea5cdf5f6a30fe8832", "variants": [ @@ -30,10 +30,10 @@ }, "latest": { "phpVersions": [ - "8.1", "8.2", "8.3", - "8.4" + "8.4", + "8.5" ], "sha1": "fd56bcdc15f1877e45dce67942ea75949ed650e8", "upstream": "6.8.3", diff --git a/versions.sh b/versions.sh index fb13badf61..a88cc3b430 100755 --- a/versions.sh +++ b/versions.sh @@ -58,7 +58,7 @@ for version in "${versions[@]}"; do jq <<<"$json" -c --argjson doc "$doc" ' .[env.version] = { version: env.fullVersion, - phpVersions: [ "8.1", "8.2", "8.3", "8.4" ], + phpVersions: [ "8.2", "8.3", "8.4", "8.5" ], variants: ( if env.version == "cli" then [ "alpine" ]