Skip to content

Commit

Permalink
Merge pull request #20 from flownative/task/php-8.2
Browse files Browse the repository at this point in the history
Add PHP 8.2 to build setup
  • Loading branch information
kdambekalns authored Dec 13, 2022
2 parents 1ff53e0 + 1d2d3f7 commit c14ef79
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
strategy:
matrix:
php: [ 7.4.33, 8.0.26, 8.1.13 ]
php: [ 7.4.33, 8.0.26, 8.1.13, 8.2.0 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ similar mechanism in Kubernetes or your actual platform.
| Variable Name | Type | Default | Description |
| ----------------------- | ------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| PHP_BASE_PATH | string | /opt/flownative/php | Base path for PHP (read-only) |
| PHP_DATE_TIMEZONE | string | | Default timezone ([doc](https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone)) |
| PHP_DATE_TIMEZONE | string | UTC | Default timezone ([doc](https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone)) |
| PHP_ERROR_REPORTING | string | 2147483647 | PHP error reporting log levels ([doc](https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting)) |
| PHP_DISPLAY_ERRORS | string | off | Display PHP errors ([doc](https://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors)) |
| PHP_ERROR_LOG | string | /dev/stderr | Path leading to the file where PHP errors should be logged |
Expand Down
6 changes: 3 additions & 3 deletions root-files/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ build_compile_php() {
--with-bz2 \
--without-pear \
>$(debug_device)
elif [[ "${PHP_VERSION}" =~ ^8.[0-1] ]]; then
elif [[ "${PHP_VERSION}" =~ ^8.[0-2] ]]; then
./configure \
--prefix=${PHP_BASE_PATH} \
--with-config-file-path="${PHP_BASE_PATH}/etc" \
Expand Down Expand Up @@ -211,7 +211,7 @@ build_compile_php() {
--without-pear \
>$(debug_device)
else
error "🛠 Unsupported PHP version ${PHP_VERSION}"
error "🛠 No configure call available for PHP version ${PHP_VERSION}"
exit 1
fi

Expand Down Expand Up @@ -430,7 +430,7 @@ case $1 in
init)
banner_flownative 'PHP'

if [[ ! "${PHP_VERSION}" =~ ^7.[1-4]|^8.[0-1] ]]; then
if [[ ! "${PHP_VERSION}" =~ ^7.[1-4]|^8.[0-2] ]]; then
error "🛠 Unsupported PHP version '${PHP_VERSION}'"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion root-files/opt/flownative/lib/php-fpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export PHP_TMP_PATH="${PHP_TMP_PATH:-${PHP_BASE_PATH}/tmp}"
export PHP_LOG_PATH="${PHP_LOG_PATH:-${PHP_BASE_PATH}/log}"
export PHP_MEMORY_LIMIT="${PHP_MEMORY_LIMIT:-750M}"
export PHP_DATE_TIMEZONE="${PHP_DATE_TIMEZONE:-}"
export PHP_DATE_TIMEZONE="${PHP_DATE_TIMEZONE:-UTC}"
export PHP_DISPLAY_ERRORS="${PHP_DISPLAY_ERRORS:-off}"
export PHP_ERROR_REPORTING="${PHP_ERROR_REPORTING:-2147483647}"
export PHP_ERROR_LOG="${PHP_ERROR_LOG:-/dev/stderr}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ extensions_xdebug_runtime_packages() {
# @return string
#
extensions_xdebug_url() {
if [[ "${PHP_VERSION}" =~ ^8 ]]; then
if [[ "${PHP_VERSION}" =~ ^8.2 ]]; then
echo "https://xdebug.org/files/xdebug-3.2.0.tgz"
elif [[ "${PHP_VERSION}" =~ ^8 ]]; then
echo "https://xdebug.org/files/xdebug-3.1.6.tgz"
else
echo "https://xdebug.org/files/xdebug-2.9.8.tgz"
Expand Down

0 comments on commit c14ef79

Please sign in to comment.