We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 409365a commit 546d606Copy full SHA for 546d606
src/ExerciseRunner/CgiRunner.php
@@ -43,6 +43,11 @@ class CgiRunner implements ExerciseRunnerInterface
43
*/
44
public function __construct(CgiExercise $exercise, EventDispatcher $eventDispatcher)
45
{
46
+ // Suppress shell output. Anything non-zero is a failure.
47
+ @system('php-cgi --version > /dev/null 2>&1', $failedToRun);
48
+ if ($failedToRun) {
49
+ die('Could not load php-cgi binary. Please install php-cgi using your package manager.' . PHP_EOL);
50
+ }
51
$this->eventDispatcher = $eventDispatcher;
52
$this->exercise = $exercise;
53
}
0 commit comments