Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition: Warnings or more critical errors have to be thrown as exceptions #68

Open
tristanlins opened this issue Apr 13, 2013 · 1 comment

Comments

@tristanlins
Copy link
Member

function exception_error_handler($errno, $errstr, $errfile, $errline ) {
    throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
}
set_error_handler("exception_error_handler", E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
@ghost ghost assigned backbone87 Apr 13, 2013
@discordier
Copy link
Member

seconded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants