Module: nagvis
Branch: master
Commit: 078932614fe2eb5fddd09317d6d38c876cab6929
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=078932614fe2eb5fddd09317d6d38c876cab6929

Author: Lars Michelsen <[email protected]>
Date:   Sat Oct  2 00:15:14 2010 +0200

#363 not reporting E_STRICT in PHP versions below 5.2 anymore

---

 share/server/core/defines/global.php |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/share/server/core/defines/global.php 
b/share/server/core/defines/global.php
index 1c3f466..f699605 100644
--- a/share/server/core/defines/global.php
+++ b/share/server/core/defines/global.php
@@ -30,7 +30,13 @@
 define('CONST_VERSION', '1.5.2');
 
 // Set PHP error handling to standard level
-error_reporting(E_ALL ^ E_STRICT);
+// Different levels for php versions below 5.1 because PHP 5.1 reports
+// some annoying strict messages which are OK for us. From version 5.2
+// everything is OK when using E_STRICT.
+if(version_compare(PHP_VERSION, '5.2') >= 0)
+       error_reporting(E_ALL ^ E_STRICT);
+else
+       error_reporting(E_ALL);
 
 /**
  * Set the search path for included files


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to