errorFunctions.inc

phudbase/server/includes/errorFunctions.inc · 384 B

From the archive phudbase-1.11.tar.gz

Download the archive   « Back to the archive contents

<?php
	// Error handling goodness //
	
	// Will catch non-fatal errors, dump the error trace, and prevent process death //
	function error_handler_exception($errno, $errstr, $errfile, $errline ) 
	{
	   throw new ErrorException($errstr, 0, $errno, $errfile, $errline);	    
	}
		
	set_error_handler('error_handler_exception', E_ERROR | E_WARN | E_USER_ERROR | E_RECOVERABLE_ERROR);
?>

Site Stats

Snippets: 1791
Codebases: 571