Skip to content

Commit a3d083f

Browse files
committed
[VarDumper] Backport handler lock when using VAR_DUMPER_FORMAT
1 parent 729712e commit a3d083f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

DataCollector/DumpDataCollector.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,7 @@ public function __destruct()
235235
--$i;
236236
}
237237

238-
if (isset($_SERVER['VAR_DUMPER_FORMAT'])) {
239-
$html = 'html' === $_SERVER['VAR_DUMPER_FORMAT'];
240-
} else {
241-
$html = !\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && stripos($h[$i], 'html');
242-
}
243-
244-
if ($html) {
238+
if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && stripos($h[$i], 'html')) {
245239
$dumper = new HtmlDumper('php://output', $this->charset);
246240
$dumper->setDisplayOptions(['fileLinkFormat' => $this->fileLinkFormat]);
247241
} else {

0 commit comments

Comments
 (0)