@@ -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