From 4dfabbb4e2a2c0f3a50d221a29a24644a195e3fd Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 21 Nov 2006 17:15:41 +0000 Subject: [PATCH] Got rid fo PHP5-specific handling --- .../src/modules/archiveServer/var/xmlrpc/xrArchive.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/campcaster/src/modules/archiveServer/var/xmlrpc/xrArchive.php b/campcaster/src/modules/archiveServer/var/xmlrpc/xrArchive.php index 4e2adcb9a..1364240ec 100644 --- a/campcaster/src/modules/archiveServer/var/xmlrpc/xrArchive.php +++ b/campcaster/src/modules/archiveServer/var/xmlrpc/xrArchive.php @@ -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 */