You are here

public static function ErrorHandler::start in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-stdlib/src/ErrorHandler.php \Zend\Stdlib\ErrorHandler::start()

Starting the error handler

Parameters

int $errorLevel:

4 calls to ErrorHandler::start()
Glob::systemGlob in vendor/zendframework/zend-stdlib/src/Glob.php
Use the glob function provided by the system.
Reader::detectType in vendor/zendframework/zend-feed/src/Reader/Reader.php
Detect the feed type of the provided feed
Reader::importFile in vendor/zendframework/zend-feed/src/Reader/Reader.php
Imports a feed from a file located at $filename.
StringUtils::hasPcreUnicodeSupport in vendor/zendframework/zend-stdlib/src/StringUtils.php
Is PCRE compiled with Unicode support?

File

vendor/zendframework/zend-stdlib/src/ErrorHandler.php, line 52

Class

ErrorHandler
ErrorHandler that can be used to catch internal PHP errors and convert to an ErrorException instance.

Namespace

Zend\Stdlib

Code

public static function start($errorLevel = \E_WARNING) {
  if (!static::$stack) {
    set_error_handler([
      get_called_class(),
      'addError',
    ], $errorLevel);
  }
  static::$stack[] = null;
}