Skip to content

Commit

Permalink
Remove -- when invoking the PHP CLI binary
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jun 21, 2017
1 parent 84cd33a commit 8c726c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Process/ChannelledProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function __construct(string $path, string $cwd = "", array $env = []) {
"log_errors" => "1",
];

$options = (\PHP_SAPI === "phpdbg" ? " -b -qrr " : " ") . $this->formatOptions($options) . " -- ";
$command = \PHP_BINARY . $options . \escapeshellarg($path);
$options = (\PHP_SAPI === "phpdbg" ? " -b -qrr " : " ") . $this->formatOptions($options);
$command = \PHP_BINARY . $options . (\PHP_BINARY === "phpdbg" ? " -- " : " ") . \escapeshellarg($path);

$this->process = new Process($command, $cwd, $env);
}
Expand Down

0 comments on commit 8c726c6

Please sign in to comment.