__toString(); return false; // continue normal error handler } set_error_handler('myErrorHandler'); function test(){ test2('bar'); } function test2(){ echo tests.PHP_EOL; // Use of undefined constant tests } test('foo');