File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1717 - " 8.2.25"
1818 - " 8.1.30"
1919 - " 8.3.13"
20- # - "8.4.1"
20+ - " 8.4.1"
2121
2222 steps :
2323 - name : Prepare git
9696 run : |
9797 ./bin/php.exe -v
9898 ./bin/php.exe -m
99- ./bin/php.exe --ri pdo_pgsql
99+ ./bin/php.exe --ri mongodb
100+ ./bin/php.exe --ri gd
100101 ./bin/php.exe --ri swoole
101102 ./bin/php.exe -r "echo PHP_VERSION;"
102103
Original file line number Diff line number Diff line change @@ -15,11 +15,16 @@ ROOT=${__PROJECT__}
1515
1616PHP_VERSION=' 8.2.25'
1717SWOOLE_VERSION=' v5.1.5'
18+ X_PHP_VERSION=' 8.2'
1819
1920while [ $# -gt 0 ]; do
2021 case " $1 " in
2122 --php-version)
2223 PHP_VERSION=" $2 "
24+ X_PHP_VERSION=$( echo ${PHP_VERSION: 0: 3} )
25+ if [ " $X_PHP_VERSION " = " 8.4" ]; then
26+ SWOOLE_VERSION=' v6.0.0-rc1'
27+ fi
2328 ;;
2429 --swoole-version)
2530 SWOOLE_VERSION=" $2 "
@@ -77,6 +82,9 @@ if [ ! -d $ROOT/ext/imagick ]; then
7782 fi
7883 tar xvf imagick-${IMAGICK_VERSION} .tgz
7984 mv imagick-${IMAGICK_VERSION} $ROOT /ext/imagick
85+ if [ " $X_PHP_VERSION " = " 8.4" ]; then
86+ sed -i.backup " s/php_strtolower(/zend_str_tolower(/" $ROOT /ext/imagick/imagick.c
87+ fi
8088fi
8189
8290if [ ! -f swoole-${SWOOLE_VERSION} .tgz ]; then
Original file line number Diff line number Diff line change 99 if (BUILD_CUSTOM_PHP_VERSION_ID >= 8040 ) {
1010 // v5.1.x 不支持 PHP 8.4
1111 // swoole 支持计划 https://wiki.swoole.com/zh-cn/#/version/supported?id=%e6%94%af%e6%8c%81%e8%ae%a1%e5%88%92
12- $ swoole_tag = 'master ' ;
12+ $ swoole_tag = 'v6.0.0-rc1 ' ;
1313 }
1414 $ file = "swoole- {$ swoole_tag }.tar.gz " ;
1515
You can’t perform that action at this time.
0 commit comments