Plugins/AmfphpErrorHandlerAmfphpErrorHandler.php

This file is part of amfPHP

LICENSE

This source file is subject to the license that is bundled with this package in the file license.txt.

Classes

AmfphpErrorHandler sets a custom error handler to catch notices and such and transform them to exceptions.

Functions

custom_warning_handler()

custom_warning_handler(integer $errno, string $errstr, string $errfile, integer $errline, mixed $errcontext)

Only throw an exception if the error level would report it

Parameters

integer $errno
string $errstr
string $errfile
integer $errline
mixed $errcontext

Throws

\Exception