Skip to content

Commit bc7dba6

Browse files
committed
Fix parallel config.m4
1 parent 3ce24da commit bc7dba6

File tree

4 files changed

+9
-92
lines changed

4 files changed

+9
-92
lines changed

.github/workflows/ext-configure-tests.yml

-77
This file was deleted.

src/SPC/builder/extension/parallel.php

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use SPC\builder\Extension;
88
use SPC\exception\WrongUsageException;
9+
use SPC\store\FileSystem;
910
use SPC\util\CustomExt;
1011

1112
#[CustomExt('parallel')]
@@ -17,4 +18,10 @@ public function validate(): void
1718
throw new WrongUsageException('ext-parallel must be built with ZTS builds. Use "--enable-zts" option!');
1819
}
1920
}
21+
22+
public function patchBeforeBuildconf(): bool
23+
{
24+
FileSystem::replaceFileRegex(SOURCE_PATH . '/php-src/ext/parallel/config.m4', '/PHP_VERSION=.*/m', '');
25+
return true;
26+
}
2027
}

src/globals/test-extensions.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
];
2727

2828
// whether enable thread safe
29-
$zts = false;
29+
$zts = true;
3030

3131
$no_strip = false;
3232

@@ -38,7 +38,7 @@
3838

3939
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
4040
$extensions = match (PHP_OS_FAMILY) {
41-
'Linux', 'Darwin' => 'grpc,openssl,pgsql',
41+
'Linux', 'Darwin' => 'parallel',
4242
'Windows' => 'amqp,apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,ds,exif,ffi,fileinfo,filter,ftp,gd,iconv,igbinary,libxml,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,rar,redis,session,shmop,simdjson,simplexml,soap,sockets,sqlite3,sqlsrv,ssh2,swow,sysvshm,tokenizer,xml,xmlreader,xmlwriter,yac,yaml,zip,zlib',
4343
};
4444

tests/configure.php

-13
This file was deleted.

0 commit comments

Comments
 (0)