Example #1
0
 public function register()
 {
     set_error_handler(array($this, 'handleError'), E_ALL | E_STRICT);
     set_exception_handler(array($this, 'handleException'));
     fatal_error_handler(array($this, 'handleFatalError'));
     $this->reservedMemory = str_repeat(' ', 1024 * 20);
 }
Example #2
0
 function unlink_tmp_file($file)
 {
     @unlink($file);
     fatal_error_handler();
 }