Fix windows curl build (using cmake) (#600)

This commit is contained in:
Jerry Ma
2025-02-06 23:59:02 +09:00
committed by GitHub
parent 21de1a2291
commit 95d741496e
7 changed files with 47 additions and 20 deletions

View File

@@ -34,7 +34,7 @@ class mbregex extends Extension
public function runCliCheckWindows(): void
{
[$ret, $out] = cmd()->execWithResult(BUILD_ROOT_PATH . '/bin/php --ri "mbstring"', false);
[$ret, $out] = cmd()->execWithResult(BUILD_ROOT_PATH . '/bin/php -n --ri "mbstring"', false);
if ($ret !== 0) {
throw new RuntimeException('extension ' . $this->getName() . ' failed compile check: compiled php-cli does not contain mbstring !');
}