Ignore any ini files when sanity check (#609)

This commit is contained in:
Jerry Ma
2025-02-16 02:30:08 +09:00
committed by GitHub
parent 15af034b34
commit 34934368a2
7 changed files with 8 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ class swoole_hook_sqlite extends Extension
if ($this->builder->getExt('swoole') === null) {
return;
}
[$ret, $out] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php --ri "swoole"', false);
[$ret, $out] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php -n --ri "swoole"', false);
$out = implode('', $out);
if ($ret !== 0) {
throw new RuntimeException('extension ' . $this->getName() . ' failed compile check: php-cli returned ' . $ret);