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

@@ -18,7 +18,7 @@ class password_argon2 extends Extension
public function runCliCheckUnix(): void
{
[$ret] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php -r "assert(defined(\'PASSWORD_ARGON2I\'));"');
[$ret] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php -n -r "assert(defined(\'PASSWORD_ARGON2I\'));"');
if ($ret !== 0) {
throw new RuntimeException('extension ' . $this->getName() . ' failed sanity check');
}