don't print repeated --ri swoole check

This commit is contained in:
DubbleClick
2025-08-26 01:01:45 +07:00
parent 9803bf6c3f
commit 43352ab986
4 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ class swoole_hook_sqlite extends Extension
public function runCliCheckUnix(): void
{
$sharedExtensions = $this->getSharedExtensionLoadString();
[$ret, $out] = shell()->execWithResult(BUILD_BIN_PATH . '/php -n' . $sharedExtensions . ' --ri "' . $this->getDistName() . '"');
[$ret, $out] = shell()->execWithResult(BUILD_BIN_PATH . '/php -n' . $sharedExtensions . ' --ri "' . $this->getDistName() . '"', false);
$out = implode('', $out);
if ($ret !== 0) {
throw new ValidationException("extension {$this->getName()} failed compile check: php-cli returned {$ret}", validation_module: "Extension {$this->getName()} sanity check");