complete test suite

This commit is contained in:
DubbleClick 2025-06-26 17:36:50 +07:00
parent 2ff78e531e
commit 9a3ce775a8

View File

@ -36,7 +36,7 @@ $zig = true;
// temporary! // temporary!
if ($zig) { if ($zig) {
putenv('SPC_LIBC=musl'); putenv('SPC_LIBC=musl');
// putenv('SPC_LIBC_VERSION=2.17'); putenv('SPC_LIBC_VERSION=2.17');
putenv('CC=zig-cc'); putenv('CC=zig-cc');
putenv('CXX=zig-c++'); putenv('CXX=zig-c++');
} }
@ -57,13 +57,13 @@ $prefer_pre_built = true;
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) { $extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'curl,iconv', 'Linux', 'Darwin' => 'apcu,ast,bcmath,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,iconv,libxml,mbregex,mbstring,opcache,openssl,pcntl,phar,posix,readline,session,simplexml,sockets,sodium,tokenizer,xml,xmlreader,xmlwriter,zip,zlib',
'Windows' => 'intl', 'Windows' => 'intl',
}; };
// If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`). // If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`).
$shared_extensions = match (PHP_OS_FAMILY) { $shared_extensions = match (PHP_OS_FAMILY) {
'Linux' => '', 'Linux' => ' amqp,brotli,bz2,dio,ds,ev,event,ffi,ftp,gd,gettext,gmp,gmssl,igbinary,imagick,inotify,intl,ldap,lz4,memcache,memcached,mongodb,msgpack,mysqli,mysqlnd,odbc,opentelemetry,parallel,pdo,pdo_mysql,pdo_odbc,pdo_pgsql,pdo_sqlite,pdo_sqlsrv,pgsql,protobuf,rar,redis,rdkafka,shmop,spx,sqlite3,sqlsrv,ssh2,swoole,sysvmsg,sysvsem,sysvshm,tidy,uuid,uv,xdebug,xhprof,xlswriter,xsl,xz,yac,yaml,zstd',
'Darwin' => '', 'Darwin' => '',
'Windows' => '', 'Windows' => '',
}; };
@ -117,7 +117,8 @@ $final_libs = trim($with_libs, $trim_value);
if (PHP_OS_FAMILY === 'Windows') { if (PHP_OS_FAMILY === 'Windows') {
$final_extensions_cmd = '"' . $final_extensions . '"'; $final_extensions_cmd = '"' . $final_extensions . '"';
} else { }
else {
$final_extensions_cmd = $final_extensions; $final_extensions_cmd = $final_extensions;
} }
@ -175,7 +176,8 @@ if ($shared_extensions) {
$shared_cmd = ''; $shared_cmd = '';
break; break;
} }
} else { }
else {
$shared_cmd = ''; $shared_cmd = '';
} }