Skip to content

Commit

Permalink
Never display errors, log them instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jun 21, 2017
1 parent 29a1d1b commit d3ccd57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Process/ChannelledProcess.php
Expand Up @@ -28,7 +28,8 @@ class ChannelledProcess implements ProcessContext, Strand {
* @param mixed[] $env Array of environment variables.
*/
public function __construct(string $path, string $cwd = "", array $env = []) {
$binary = \PHP_SAPI === "phpdbg" ? \PHP_BINARY . " -qrr --" : \PHP_BINARY;
$options = "-d html_errors=0 -d display_errors=0 -d log_errors=1";
$binary = \PHP_SAPI === "phpdbg" ? \PHP_BINARY . " -b -qrr $options --" : \PHP_BINARY . " " . $options;
$command = $binary . " " . \escapeshellarg($path);
$this->process = new Process($command, $cwd, $env);
}
Expand Down

0 comments on commit d3ccd57

Please sign in to comment.