mirror of https://github.com/php/php-src
Browse Source
<?php
class ErrorHandler {
function __construct() {
set_error_handler(array(&$this, 'handle'));
}
function __destruct() {
restore_error_handler();
}
function handle($code, $msg, $file, $line, $locals) {
}
}
new ErrorHandler();
?>
PHP-5.0
1 changed files with 5 additions and 1 deletions
Loading…
Reference in new issue