- set_error_handler: documentation ( source)
<?php
function lpErrorHandler($no,$str,$file,$line)
{
aaaaaaaa;
echo $no,$str,$file,$line;
throw new ErrorException($str,0,$no,$file,$line);
return true;
}
set_error_handler("lpErrorHandler");
a();