Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP 8.4 to build setup #43

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
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: [ 8.1.30, 8.2.25, 8.3.13 ]
php: [ 8.1.30, 8.2.25, 8.3.13, 8.4.0RC3 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 7 additions & 3 deletions root-files/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ build_get_unnecessary_packages() {
build_compile_php() {
local php_source_url

php_source_url="https://www.php.net/distributions/php-${PHP_VERSION}.tar.gz"
if [[ "${PHP_VERSION}" =~ ^8.4 ]]; then
php_source_url="https://downloads.php.net/~saki/php-${PHP_VERSION}.tar.gz"
else
php_source_url="https://www.php.net/distributions/php-${PHP_VERSION}.tar.gz"
fi

info "🛠 Downloading source code for PHP ${PHP_VERSION} from ${php_source_url} ..."
with_backoff "curl -sfSL ${php_source_url} -o php.tar.gz" "15" || (
Expand All @@ -141,7 +145,7 @@ build_compile_php() {
# For GCC warning options see: https://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/Warning-Options.html
export CFLAGS='-Wno-deprecated-declarations -Wno-stringop-overflow -Wno-implicit-function-declaration'

if [[ "${PHP_VERSION}" =~ ^8.[1-3] ]]; then
if [[ "${PHP_VERSION}" =~ ^8.[1-4] ]]; then
./configure \
--prefix=${PHP_BASE_PATH} \
--with-config-file-path="${PHP_BASE_PATH}/etc" \
Expand Down Expand Up @@ -395,7 +399,7 @@ case $1 in
init)
banner_flownative 'PHP'

if [[ ! "${PHP_VERSION}" =~ ^8.[1-3] ]]; then
if [[ ! "${PHP_VERSION}" =~ ^8.[1-4] ]]; then
error "🛠 Unsupported PHP version '${PHP_VERSION}'"
exit 1
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extensions_phpredis_runtime_packages() {
# @return string
#
extensions_phpredis_url() {
echo "https://github.com/phpredis/phpredis/archive/6.0.2.tar.gz"
echo "https://github.com/phpredis/phpredis/archive/6.1.0.tar.gz"
}

# ---------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extensions_xdebug_runtime_packages() {
# @return string
#
extensions_xdebug_url() {
echo "https://xdebug.org/files/xdebug-3.3.2.tgz"
echo "https://xdebug.org/files/xdebug-3.4.0beta1.tgz"
}

# ---------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extensions_yaml_runtime_packages() {
# @return string
#
extensions_yaml_url() {
echo "http://pecl.php.net/get/yaml-2.2.3.tgz"
echo "http://pecl.php.net/get/yaml-2.2.4.tgz"
}

# ---------------------------------------------------------------------------------------
Expand Down