Skip to content
Permalink
Browse files

BlueScreen: in CLI displays panel 'CLI request' instead of HTTP reque…

…st & response
  • Loading branch information...
dg committed Mar 9, 2019
1 parent 88ee594 commit 007966f76781c7c8d152e07071807b645b9f2afd
@@ -274,6 +274,26 @@ $code = $exception->getCode() ? ' #' . $exception->getCode() : '';
</div></div>


<?php if (PHP_SAPI === 'cli'): ?>
<div class="panel">
<h2><a data-tracy-ref="^+" class="tracy-toggle tracy-collapsed">CLI request</a></h2>

<div class="tracy-collapsed inner">
<h3>Process ID <?= Helpers::escapeHtml(getmypid()) ?></h3>
<pre>php<?= Helpers::escapeHtml(explode('):', $source, 2)[1]) ?></pre>

<h3>Arguments</h3>
<div class="outer">
<table>
<?php
foreach ($_SERVER['argv'] as $k => $v) echo '<tr><th>', Helpers::escapeHtml($k), '</th><td>', Helpers::escapeHtml($v), "</td></tr>\n";
?>
</table>
</div>
</div></div>


<?php else: ?>
<div class="panel">
<h2><a data-tracy-ref="^+" class="tracy-toggle tracy-collapsed">HTTP request</a></h2>

@@ -322,6 +342,7 @@ $code = $exception->getCode() ? ' #' . $exception->getCode() : '';
<p><i>no headers</i></p>
<?php endif ?>
</div></div>
<?php endif ?>


<?php foreach ($bottomPanels as $panel): ?>
@@ -187,7 +187,7 @@
</div></div>


<div class="panel">
<div class="panel">
<h2><a data-tracy-ref="^+" class="tracy-toggle tracy-collapsed">HTTP request</a></h2>

<div class="tracy-collapsed inner">
@@ -158,7 +158,7 @@
</div></div>


<div class="panel">
<div class="panel">
<h2><a data-tracy-ref="^+" class="tracy-toggle tracy-collapsed">HTTP request</a></h2>

<div class="tracy-collapsed inner">
@@ -154,7 +154,7 @@
</div></div>


<div class="panel">
<div class="panel">
<h2><a data-tracy-ref="^+" class="tracy-toggle tracy-collapsed">HTTP request</a></h2>

<div class="tracy-collapsed inner">
@@ -161,7 +161,7 @@
</div></div>


<div class="panel">
<div class="panel">
<h2><a data-tracy-ref="^+" class="tracy-toggle tracy-collapsed">HTTP request</a></h2>

<div class="tracy-collapsed inner">

0 comments on commit 007966f

Please sign in to comment.
You can’t perform that action at this time.