diff --git a/base/PerfOptions.php b/base/PerfOptions.php index 23eeef9..cb8e9bd 100644 --- a/base/PerfOptions.php +++ b/base/PerfOptions.php @@ -198,7 +198,8 @@ public function validate() { } $engine = $this->php5 !== null ? $this->php5 : $this->hhvm; invariant( - shell_exec('which '.escapeshellarg($engine)) !== null, + shell_exec('which '.escapeshellarg($engine)) !== null + || is_executable($engine), 'Invalid engine: %s', $engine );