[ create a new paste ] login | about

Link: http://codepad.org/4nzzYQSG    [ raw code | output | fork ]

PHP, pasted on Jun 11:
1
2
3
4
5
6
7
8
<?php

function exception_error_handler($errno, $errstr, $errfile, $errline ) {
    throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
}
set_error_handler("exception_error_handler");

foo();


Output:
1
2

Fatal error: Call to undefined function foo() on line 8


Create a new paste based on this one


Comments: