mirror of
https://github.com/filp/whoops.git
synced 2026-08-31 04:27:52 +00:00
Check exists xdebug_is_enabled
Ubuntu 20.04
PHP 8.0 RC3
php8.0-xdebug (2.9.8+2.8.1+2.5.5+3.0.0~beta1-2+ubuntu20.04.1+deb.sury.org+1)
extension_loaded('xdebug') -> true
xdebug_is_enabled -> function does not exist
This commit is contained in:
committed by
GitHub
parent
2ec31f3adc
commit
dc30a4cb68
@@ -251,7 +251,7 @@ class Inspector
|
||||
return $traces;
|
||||
}
|
||||
|
||||
if (!extension_loaded('xdebug') || !xdebug_is_enabled()) {
|
||||
if (!extension_loaded('xdebug') || !function_exists('xdebug_is_enabled') || !xdebug_is_enabled()) {
|
||||
return $traces;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user