Skip to content

Commit 4b715b6

Browse files
committed
Build PHP 8.5.0beta3
1 parent 627f8d6 commit 4b715b6

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
php-version-base: "8.3"
2727
- pm-version-major: 5
2828
php-version-base: "8.4"
29+
- pm-version-major: 5
30+
php-version-base: "8.5"
31+
pm-preview: true
2932

3033
uses: ./.github/workflows/main-pm-matrix.yml
3134
with:

compile.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
PHP_VERSIONS=("8.1.33" "8.2.29" "8.3.25" "8.4.12")
2+
PHP_VERSIONS=("8.1.33" "8.2.29" "8.3.25" "8.4.12" "8.5.0beta3")
33

44
#### NOTE: Tags with "v" prefixes behave weirdly in the GitHub API. They'll be stripped in some places but not others.
55
#### Use commit hashes to avoid this.
@@ -37,6 +37,10 @@ EXT_XXHASH_VERSION="0.2.0"
3737
EXT_ARRAYDEBUG_VERSION="0.2.0"
3838
EXT_ENCODING_VERSION="1.0.0"
3939

40+
EXT_PMMPTHREAD_VERSION_PHP85="4aa34a27feaa43adba5f1e93939828d1d7afdefc"
41+
EXT_XDEBUG_VERSION_PHP85="86727b0b05b5d0a9c4fb85021f05d7931e2c3a35"
42+
EXT_IGBINARY_VERSION_PHP85="8f8b7175c7859f1845bcdee6f7d0baeea7d07cb8"
43+
4044
function write_out {
4145
echo "[$1] $2"
4246
}
@@ -301,6 +305,11 @@ fi
301305
PHP_VERSION_ID=$(php_version_id "$PHP_VERSION")
302306
write_out "opt" "Selected PHP $PHP_VERSION ($PHP_VERSION_ID)"
303307

308+
if [ $PHP_VERSION_ID -ge 80500 ]; then
309+
EXT_PMMPTHREAD_VERSION="$EXT_PMMPTHREAD_VERSION_PHP85"
310+
EXT_XDEBUG_VERSION="$EXT_XDEBUG_VERSION_PHP85"
311+
EXT_IGBINARY_VERSION="$EXT_IGBINARY_VERSION_PHP85"
312+
fi
304313
if [ $PHP_VERSION_ID -ge 80400 ]; then
305314
HAVE_OPCACHE_JIT="yes"
306315
fi
@@ -1350,7 +1359,9 @@ echo "display_startup_errors=1" >> "$INSTALL_DIR/bin/php.ini"
13501359
echo "recursionguard.enabled=0 ;disabled due to minor performance impact, only enable this if you need it for debugging" >> "$INSTALL_DIR/bin/php.ini"
13511360

13521361
if [ "$HAVE_OPCACHE" == "yes" ]; then
1353-
echo "zend_extension=opcache.so" >> "$INSTALL_DIR/bin/php.ini"
1362+
if [ "$PHP_VERSION_ID" -lt 80500 ]; then
1363+
echo "zend_extension=opcache.so" >> "$INSTALL_DIR/bin/php.ini"
1364+
fi
13541365
echo "opcache.enable=1" >> "$INSTALL_DIR/bin/php.ini"
13551366
echo "opcache.enable_cli=1" >> "$INSTALL_DIR/bin/php.ini"
13561367
echo "opcache.save_comments=1" >> "$INSTALL_DIR/bin/php.ini"

windows-compile-vs.ps1

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
$ErrorActionPreference="Stop"
22
$ProgressPreference="SilentlyContinue"
33

4-
$PHP_VERSIONS=@("8.1.33", "8.2.29", "8.3.25", "8.4.12")
4+
$PHP_VERSIONS=@("8.1.33", "8.2.29", "8.3.25", "8.4.12", "8.5.0beta3")
55

6-
$PHP_SDK_VER="2.3.0"
6+
$PHP_SDK_VER="2.4.0"
77
$ARCH="x64"
88

99
#### NOTE: Tags with "v" prefixes behave weirdly in the GitHub API. They'll be stripped in some places but not others.
@@ -28,6 +28,10 @@ $PHP_XDEBUG_VER="3.4.5"
2828
$PHP_ARRAYDEBUG_VER="0.2.0"
2929
$PHP_ENCODING_VER="1.0.0"
3030

31+
$PHP_PMMPTHREAD_VER_PHP85="4aa34a27feaa43adba5f1e93939828d1d7afdefc"
32+
$PHP_IGBINARY_VER_PHP85="8f8b7175c7859f1845bcdee6f7d0baeea7d07cb8"
33+
$PHP_XDEBUG_VER_PHP85="86727b0b05b5d0a9c4fb85021f05d7931e2c3a35"
34+
3135
function pm-echo {
3236
param ([string] $message)
3337

@@ -200,6 +204,11 @@ if ($PHP_VERSION_ID -ge 80400) {
200204

201205
pm-echo "Selected PHP $PHP_VER ($PHP_VERSION_ID), SDK target $VC_VER ($SDK_TOOLSET_FLAG), CMake target $CMAKE_TARGET ($CMAKE_TOOLSET_FLAG)"
202206

207+
if ($PHP_VERSION_ID -ge 80500) {
208+
$PHP_PMMPTHREAD_VER=$PHP_PMMPTHREAD_VER_PHP85
209+
$PHP_IGBINARY_VER=$PHP_IGBINARY_VER_PHP85
210+
$PHP_XDEBUG_VER=$PHP_XDEBUG_VER_PHP85
211+
}
203212
$PHP_JIT_ENABLE_ARG="no"
204213
if ($PHP_VERSION_ID -ge 80400 -or $env:PHP_JIT_SUPPORT -eq 1) {
205214
$PHP_JIT_ENABLE_ARG="yes"
@@ -623,7 +632,9 @@ append-file-utf8 "extension=php_crypto.dll" $php_ini
623632
append-file-utf8 "extension=php_libdeflate.dll" $php_ini
624633
append-file-utf8 "extension=php_encoding.dll" $php_ini
625634
append-file-utf8 "igbinary.compact_strings=0" $php_ini
626-
append-file-utf8 "zend_extension=php_opcache.dll" $php_ini
635+
if ($PHP_VERSION_ID -lt 80500) {
636+
append-file-utf8 "zend_extension=php_opcache.dll" $php_ini
637+
}
627638
append-file-utf8 "opcache.enable=1" $php_ini
628639
append-file-utf8 "opcache.enable_cli=1" $php_ini
629640
append-file-utf8 "opcache.save_comments=1" $php_ini

0 commit comments

Comments
 (0)