From 8056c11598c239da963e574d65d65342def472bd Mon Sep 17 00:00:00 2001 From: cassiopc Date: Thu, 7 Nov 2013 10:27:39 +0100 Subject: removing the call to define_syslog for php versions >= 5.4 --- src/globals.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/globals.php b/src/globals.php index 487c26f..d4e5319 100755 --- a/src/globals.php +++ b/src/globals.php @@ -219,7 +219,8 @@ function LOGError($msg) { function LOGLevel($msg,$level,$dodb=true) { $msga = sanitizeText(str_replace("\n", " ", $msg)); $msg = now() . ": "; - define_syslog_variables (); + // if php version arrives to 5.10 then this will not work!! + if(strcmp(phpversion(),'5.4.0')<0) define_syslog_variables (); $prior = LOG_CRIT; switch ($level) { case 0: $msg .= "ERROR: "; -- cgit v1.2.3