Skip to content

Commit b62f029

Browse files
committed
cs fix
1 parent c711a36 commit b62f029

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SPC/builder/windows/WindowsBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function buildCgi(): void
180180
logger()->info('Deploying cgi file');
181181
FileSystem::createDir(BUILD_ROOT_PATH . '\bin');
182182

183-
cmd()->exec('copy ' . escapeshellarg(SOURCE_PATH . "\\php-src\\x64\\Release" . ($this->zts ? '_TS' : '') . "\\php-cgi.exe") . ' ' . escapeshellarg(BUILD_ROOT_PATH . '\bin\\php-cgi.exe'));
183+
cmd()->exec('copy ' . escapeshellarg(SOURCE_PATH . '\\php-src\\x64\\Release' . ($this->zts ? '_TS' : '') . '\\php-cgi.exe') . ' ' . escapeshellarg(BUILD_ROOT_PATH . '\bin\php-cgi.exe'));
184184
}
185185

186186
public function buildEmbed(): void
@@ -326,8 +326,8 @@ public function sanityCheck(mixed $build_target): void
326326
// sanity check for php-cgi
327327
if (($build_target & BUILD_TARGET_CGI) === BUILD_TARGET_CGI) {
328328
logger()->info('running cgi sanity check');
329-
FileSystem::writeFile(SOURCE_PATH . '\\php-cgi-test.php', '<?php echo "<h1>Hello, World!</h1>"; ?>');
330-
[$ret, $output] = cmd()->execWithResult(BUILD_BIN_PATH . '\\php-cgi.exe -n -f ' . SOURCE_PATH . '\\php-cgi-test.php');
329+
FileSystem::writeFile(SOURCE_PATH . '\php-cgi-test.php', '<?php echo "<h1>Hello, World!</h1>"; ?>');
330+
[$ret, $output] = cmd()->execWithResult(BUILD_BIN_PATH . '\php-cgi.exe -n -f ' . SOURCE_PATH . '\php-cgi-test.php');
331331
$raw_output = implode("\n", $output);
332332
if ($ret !== 0 || !str_contains($raw_output, 'Hello, World!')) {
333333
throw new ValidationException("cgi failed sanity check. code: {$ret}, output: {$raw_output}", validation_module: 'php-cgi sanity check');

0 commit comments

Comments
 (0)