You are here

class ErrorHandlerCanary in Zircon Profile 8

Same name and namespace in other branches
  1. 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

Expanded class hierarchy of ErrorHandlerCanary

File

vendor/symfony/debug/ErrorHandler.php, line 723

Namespace

Symfony\Component\Debug
View 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