Skip to content
Permalink
Browse files

Ensure that all checks for cli also include support for phpdbg

  • Loading branch information...
dakota committed Dec 4, 2015
1 parent f12ef0b commit 084e9abdffc99d11a8d9c0d1ab0ac49582cdc0ed
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/Core/functions.php
  2. +1 −1 src/Error/BaseErrorHandler.php
@@ -138,7 +138,7 @@ function pr($var)
return;
}
$template = PHP_SAPI !== 'cli' ? '<pre class="pr">%s</pre>' : "\n%s\n\n";
$template = (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') ? '<pre class="pr">%s</pre>' : "\n%s\n\n";
printf($template, trim(print_r($var, true)));
}
@@ -162,7 +162,7 @@ function pj($var)
return;
}
$template = PHP_SAPI !== 'cli' ? '<pre class="pj">%s</pre>' : "\n%s\n\n";
$template = (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') ? '<pre class="pj">%s</pre>' : "\n%s\n\n";
printf($template, trim(json_encode($var, JSON_PRETTY_PRINT)));
}
@@ -292,7 +292,7 @@ protected function _getMessage(Exception $exception)
$message .= "\nException Attributes: " . var_export($exception->getAttributes(), true);
}
}
if (PHP_SAPI !== 'cli') {
if ((PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg')) {
$request = Router::getRequest();
if ($request) {
$message .= "\nRequest URL: " . $request->here();

0 comments on commit 084e9ab

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