Got rid fo PHP5-specific handling

This commit is contained in:
paul 2006-11-21 17:15:41 +00:00
parent 802bc91be6
commit 4dfabbb4e2

View file

@ -4,8 +4,6 @@
* @version : $Revision$ * @version : $Revision$
*/ */
define('PHP5', version_compare( phpversion(), "5.0.0", ">=" ));
/* ====================================================== specific PHP config */ /* ====================================================== specific PHP config */
//error_reporting(0); //error_reporting(0);
ini_set("html_errors", FALSE); ini_set("html_errors", FALSE);
@ -52,11 +50,7 @@ function errHndl($errno, $errmsg, $filename, $linenum, $vars){
exit($errno); exit($errno);
} }
} }
if(PHP5){ $old_error_handler = set_error_handler("errHndl", E_ALL);
$old_error_handler = set_error_handler("errHndl", E_ALL);
}else{
$old_error_handler = set_error_handler("errHndl");
}
/* ============================================================= runable code */ /* ============================================================= runable code */