", '#'.$errno.' '.$errstr, $err_hint); $err_hint = str_replace("", $errfile.':'.$errline, $err_hint); // show echo $err_hint; // return true to ignore php standard error-handler return true; } // of on shell, use the php standard error-handler return false; }