Skip to content

Commit

Permalink
Merge pull request #27 from flownative/task/php-8.3
Browse files Browse the repository at this point in the history
Add PHP 8.3 to build setup
  • Loading branch information
robertlemke authored Nov 6, 2023
2 parents e8a3200 + e1ef680 commit 4b1c864
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 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.30, 8.1.25, 8.2.12 ]
php: [ 7.4.33, 8.0.30, 8.1.25, 8.2.12, 8.3.0RC5 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
11 changes: 8 additions & 3 deletions root-files/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ 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.3 ]]; then
php_source_url="https://downloads.php.net/~jakub/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 -sSL ${php_source_url} -o php.tar.gz" "15" || (
error "Failed downloading PHP source from ${php_source_url}"
Expand Down Expand Up @@ -178,7 +183,7 @@ build_compile_php() {
--with-bz2 \
--without-pear \
>$(debug_device)
elif [[ "${PHP_VERSION}" =~ ^8.[0-2] ]]; then
elif [[ "${PHP_VERSION}" =~ ^8.[0-3] ]]; then
./configure \
--prefix=${PHP_BASE_PATH} \
--with-config-file-path="${PHP_BASE_PATH}/etc" \
Expand Down Expand Up @@ -432,7 +437,7 @@ case $1 in
init)
banner_flownative 'PHP'

if [[ ! "${PHP_VERSION}" =~ ^7.[1-4]|^8.[0-2] ]]; then
if [[ ! "${PHP_VERSION}" =~ ^7.4|^8.[0-3] ]]; then
error "🛠 Unsupported PHP version '${PHP_VERSION}'"
exit 1
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extensions_igbinary_runtime_packages() {
# @return string
#
extensions_igbinary_url() {
echo "https://github.com/igbinary/igbinary/archive/refs/tags/3.2.12.tar.gz"
echo "https://github.com/igbinary/igbinary/archive/refs/tags/3.2.14.tar.gz"
}

# ---------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extensions_ssh2_runtime_packages() {
# @return string
#
extensions_ssh2_url() {
echo "https://pecl.php.net/get/ssh2-1.3.1.tgz"
echo "https://pecl.php.net/get/ssh2-1.4.tgz"
}

# ---------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ extensions_xdebug_runtime_packages() {
# @return string
#
extensions_xdebug_url() {
if [[ "${PHP_VERSION}" =~ ^8.2 ]]; then
echo "https://xdebug.org/files/xdebug-3.2.0.tgz"
if [[ "${PHP_VERSION}" =~ ^8.3 ]]; then
echo "https://github.com/xdebug/xdebug/archive/refs/heads/master.tar.gz"
elif [[ "${PHP_VERSION}" =~ ^8.2 ]]; then
echo "https://xdebug.org/files/xdebug-3.2.2.tgz"
elif [[ "${PHP_VERSION}" =~ ^8 ]]; then
echo "https://xdebug.org/files/xdebug-3.1.6.tgz"
else
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.2.tgz"
echo "http://pecl.php.net/get/yaml-2.2.3.tgz"
}

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

0 comments on commit 4b1c864

Please sign in to comment.