Custom Error Handling Class
Posted: Fri Jun 29, 2007 3:27 am
Hi all,
Can someone please enlighten me as to why the following prints the fatal array without var dumping the params?
Thanks
Jamie
Edit: Missed a bracket but same problem.
Can someone please enlighten me as to why the following prints the fatal array without var dumping the params?
Code: Select all
#!/usr/bin/php
<?php
class Error_Handler
{
public static function handle($foo, $bar, $baz, $delta)
{
var_dump($foo, $bar, $baz, $delta);
}
}
set_error_handler(array('Error_Handler', 'handle'), E_ALL);
foo();
Output:
Fatal error: Call to undefined function foo() in /home/jamiel/test.php on line 13Jamie
Edit: Missed a bracket but same problem.