You are here

public static function ErrorHandler::addError in Zircon Profile 8

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

Add an error to the stack

Parameters

int $errno:

string $errstr:

string $errfile:

int $errline:

Return value

void

File

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

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 addError($errno, $errstr = '', $errfile = '', $errline = 0) {
  $stack =& static::$stack[count(static::$stack) - 1];
  $stack = new ErrorException($errstr, 0, $errno, $errfile, $errline, $stack);
}