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+
3135function pm-echo {
3236 param ([string ] $message )
3337
@@ -200,6 +204,11 @@ if ($PHP_VERSION_ID -ge 80400) {
200204
201205pm- 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"
204213if ($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
623632append- file- utf8 " extension=php_libdeflate.dll" $php_ini
624633append- file- utf8 " extension=php_encoding.dll" $php_ini
625634append- 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+ }
627638append- file- utf8 " opcache.enable=1" $php_ini
628639append- file- utf8 " opcache.enable_cli=1" $php_ini
629640append- file- utf8 " opcache.save_comments=1" $php_ini
0 commit comments