Skip to content

Commit

Permalink
Disable zlib compression on the command line (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Nov 22, 2018
1 parent d4b3511 commit 6b4316e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/Process/PhpExecutableFinder.php
Expand Up @@ -98,10 +98,10 @@ public function getServerInfo($cli)

try {
$process = (new Process($commandline))->mustRun(null, array_map(function () { return false; }, $_ENV));
$output = json_decode(trim($process->getOutput()), true);
$output = @json_decode(trim($process->getOutput()), true);

if (null === $output) {
throw new RuntimeException('Received unexpected output from console: '.$process->getOutput());
throw new RuntimeException('Unexpected output from "'.$commandline.'": '.$process->getOutput());
}

return $output;
Expand Down
1 change: 1 addition & 0 deletions api/console
Expand Up @@ -26,6 +26,7 @@ unset($xdebug);

if (function_exists('ini_set')) {
@ini_set('display_errors', 1);
@ini_set('zlib.output_compression', 0);

$memoryInBytes = function ($value) {
$unit = strtolower(substr($value, -1, 1));
Expand Down

0 comments on commit 6b4316e

Please sign in to comment.