Skip to content

Commit

Permalink
[VarDumper] Backport handler lock when using VAR_DUMPER_FORMAT
Browse files Browse the repository at this point in the history
  • Loading branch information
ogizanagi committed Aug 14, 2020
1 parent 729712e commit a3d083f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions DataCollector/DumpDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,7 @@ public function __destruct()
--$i;
}

if (isset($_SERVER['VAR_DUMPER_FORMAT'])) {
$html = 'html' === $_SERVER['VAR_DUMPER_FORMAT'];
} else {
$html = !\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && stripos($h[$i], 'html');
}

if ($html) {
if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && stripos($h[$i], 'html')) {
$dumper = new HtmlDumper('php://output', $this->charset);
$dumper->setDisplayOptions(['fileLinkFormat' => $this->fileLinkFormat]);
} else {
Expand Down

0 comments on commit a3d083f

Please sign in to comment.