Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Support absolute paths for --hhvm or --php5
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jan 27, 2015
1 parent ed855b5 commit 4791da6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/PerfOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 4791da6

Please sign in to comment.