Navigation

Search

error_handler

Description

A standard replacement for PHP's error handler.

Syntax

void error_handler (int $error_level, string $error_string, string $file, int $line)



Parameter $error_level

Expected type: Integer
Description: Determines the level of this error (see http://www.php.net/error_reporting)



Parameter $error_string

Expected type: String
Description: The error message



Parameter $file

Expected type: String
Description: The file where this error was generated



Parameter $line

Expected type: Integer
Description: The line number where this error occurred


Notes

  • Dies with fatal_error if the error level matches ERROR_REPORTING (see PHP manual)
View all versions of this function