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

@@ -277,7 +277,7 @@ class WindowsBuilder extends BuilderBase
// sanity check for php-cli
if (($build_target & BUILD_TARGET_CLI) === BUILD_TARGET_CLI) {
logger()->info('running cli sanity check');
[$ret, $output] = cmd()->execWithResult(BUILD_ROOT_PATH . '\bin\php.exe -r "echo \"hello\";"');
[$ret, $output] = cmd()->execWithResult(BUILD_ROOT_PATH . '\bin\php.exe -n -r "echo \"hello\";"');
if ($ret !== 0 || trim(implode('', $output)) !== 'hello') {
throw new RuntimeException('cli failed sanity check');
}