Skip to content

Commit

Permalink
Merge pull request #677 from visavi/patch-1
Browse files Browse the repository at this point in the history
Check exists xdebug_is_enabled
  • Loading branch information
denis-sokolov committed Nov 1, 2020
2 parents 2ec31f3 + dc30a4c commit aad71dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Whoops/Exception/Inspector.php
Expand Up @@ -251,7 +251,7 @@ protected function getTrace($e)
return $traces;
}

if (!extension_loaded('xdebug') || !xdebug_is_enabled()) {
if (!extension_loaded('xdebug') || !function_exists('xdebug_is_enabled') || !xdebug_is_enabled()) {
return $traces;
}

Expand Down

0 comments on commit aad71dc

Please sign in to comment.