Skip to content

Commit 3033a6e

Browse files
authored
Merge pull request #142 from gsteel/stable-php-8.0
Set the default stable PHP version to 8.0, Apply default ini settings to PHP 8.2
2 parents c04f508 + f097ffc commit 3033a6e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ RUN apt update \
219219
php8.2-xsl \
220220
php8.2-zip \
221221
# Set default PHP version
222-
&& update-alternatives --set php /usr/bin/php7.4 \
223-
&& update-alternatives --set phpize /usr/bin/phpize7.4 \
224-
&& update-alternatives --set php-config /usr/bin/php-config7.4 \
222+
&& update-alternatives --set php /usr/bin/php8.0 \
223+
&& update-alternatives --set phpize /usr/bin/phpize8.0 \
224+
&& update-alternatives --set php-config /usr/bin/php-config8.0 \
225225
&& apt autoremove -y \
226226
&& apt clean
227227

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ The container the action provides and consumes builds off the ubuntu:focal image
233233
- 7.4
234234
- 8.0
235235
- 8.1
236+
- 8.2
236237

237238
Each provides the following extensions by default:
238239

scripts/php_ini_dev_settings.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SUBSTITUTIONS+=('s/mysqlnd.collect_memory_statistics ?= ?(On|Off)/mysqlnd.collec
1414
SUBSTITUTIONS+=('s/zend.assertions ?= ?(-1|1)/zend.assertions = 1/')
1515
SUBSTITUTIONS+=('s/opcache.huge_code_pages ?= ?(0|1)/opcache.huge_code_pages = 0/')
1616

17-
for PHP_VERSION in 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1;do
17+
for PHP_VERSION in 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2;do
1818
for PHP_SAPI in cli phpdbg; do
1919
INI_FILE="/etc/php/${PHP_VERSION}/${PHP_SAPI}/php.ini"
2020
for SUBSTITUTION in "${SUBSTITUTIONS[@]}";do

0 commit comments

Comments
 (0)