class ErrorHandlerCanary in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/debug/ErrorHandler.php \Symfony\Component\Debug\ErrorHandlerCanary
Private class used to work around https://bugs.php.net/54275.
@author Nicolas Grekas <p@tchwork.com>
@internal
Hierarchy
- class \Symfony\Component\Debug\ErrorHandlerCanary
Expanded class hierarchy of ErrorHandlerCanary
File
- vendor/
symfony/ debug/ ErrorHandler.php, line 723
Namespace
Symfony\Component\DebugView source
class ErrorHandlerCanary {
private static $displayErrors = null;
public function __construct() {
if (null === self::$displayErrors) {
self::$displayErrors = ini_set('display_errors', 1);
}
}
public function __destruct() {
if (null !== self::$displayErrors) {
ini_set('display_errors', self::$displayErrors);
self::$displayErrors = null;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ErrorHandlerCanary:: |
private static | property | ||
ErrorHandlerCanary:: |
public | function | ||
ErrorHandlerCanary:: |
public | function |