Skip to content

Commit

Permalink
Fix parallel config.m4
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Dec 5, 2024
1 parent 3ce24da commit bc7dba6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 92 deletions.
77 changes: 0 additions & 77 deletions .github/workflows/ext-configure-tests.yml

This file was deleted.

7 changes: 7 additions & 0 deletions src/SPC/builder/extension/parallel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use SPC\builder\Extension;
use SPC\exception\WrongUsageException;
use SPC\store\FileSystem;
use SPC\util\CustomExt;

#[CustomExt('parallel')]
Expand All @@ -17,4 +18,10 @@ public function validate(): void
throw new WrongUsageException('ext-parallel must be built with ZTS builds. Use "--enable-zts" option!');
}
}

public function patchBeforeBuildconf(): bool
{
FileSystem::replaceFileRegex(SOURCE_PATH . '/php-src/ext/parallel/config.m4', '/PHP_VERSION=.*/m', '');
return true;
}
}
4 changes: 2 additions & 2 deletions src/globals/test-extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
];

// whether enable thread safe
$zts = false;
$zts = true;

$no_strip = false;

Expand All @@ -38,7 +38,7 @@

// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'grpc,openssl,pgsql',
'Linux', 'Darwin' => 'parallel',
'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',
};

Expand Down
13 changes: 0 additions & 13 deletions tests/configure.php

This file was deleted.

0 comments on commit bc7dba6

Please sign in to comment.