Skip to content

Commit

Permalink
Merge pull request #142 from gsteel/stable-php-8.0
Browse files Browse the repository at this point in the history
Set the default stable PHP version to 8.0, Apply default ini settings to PHP 8.2
  • Loading branch information
Ocramius authored Dec 16, 2022
2 parents c04f508 + f097ffc commit 3033a6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ RUN apt update \
php8.2-xsl \
php8.2-zip \
# Set default PHP version
&& update-alternatives --set php /usr/bin/php7.4 \
&& update-alternatives --set phpize /usr/bin/phpize7.4 \
&& update-alternatives --set php-config /usr/bin/php-config7.4 \
&& update-alternatives --set php /usr/bin/php8.0 \
&& update-alternatives --set phpize /usr/bin/phpize8.0 \
&& update-alternatives --set php-config /usr/bin/php-config8.0 \
&& apt autoremove -y \
&& apt clean

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ The container the action provides and consumes builds off the ubuntu:focal image
- 7.4
- 8.0
- 8.1
- 8.2

Each provides the following extensions by default:

Expand Down
2 changes: 1 addition & 1 deletion scripts/php_ini_dev_settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;do
for PHP_VERSION in 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2;do
for PHP_SAPI in cli phpdbg; do
INI_FILE="/etc/php/${PHP_VERSION}/${PHP_SAPI}/php.ini"
for SUBSTITUTION in "${SUBSTITUTIONS[@]}";do
Expand Down

0 comments on commit 3033a6e

Please sign in to comment.