Got rid fo PHP5-specific handling

This commit is contained in:
paul 2006-11-21 17:15:41 +00:00
parent 802bc91be6
commit 4dfabbb4e2
1 changed files with 1 additions and 7 deletions

View File

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