Title: [opsview-base] [24] test if E_DEPRECATED is defined
Revision
24
Author
aburzynski
Date
2012-07-31 11:15:04 +0100 (Tue, 31 Jul 2012)

Log Message

test if E_DEPRECATED is defined

Modified Paths


Modified: trunk/patches/nagvis_default_timezone.patch
===================================================================
--- trunk/patches/nagvis_default_timezone.patch	2012-07-31 08:54:03 UTC (rev 23)
+++ trunk/patches/nagvis_default_timezone.patch	2012-07-31 10:15:04 UTC (rev 24)
@@ -2,7 +2,7 @@
 --- nagvis-1.4.4/nagvis/includes/defines/global.php	2012-05-14 13:43:17.000000000 +0100
 +++ nagvis-1.4.4-patched/nagvis/includes/defines/global.php	2012-05-14 13:48:38.000000000 +0100
 @@ -33,6 +33,9 @@
- error_reporting(E_ALL ^ E_STRICT ^ E_DEPRECATED);
+ error_reporting(E_ALL ^ E_STRICT ^ ( defined("E_DEPRECATED") ? E_DEPRECATED : 0 ));
  ini_set('display_errors', 0);
  
 +// Opsview patch: set default timezone

Modified: trunk/patches/nagvis_remove_display_errors.patch
===================================================================
--- trunk/patches/nagvis_remove_display_errors.patch	2012-07-31 08:54:03 UTC (rev 23)
+++ trunk/patches/nagvis_remove_display_errors.patch	2012-07-31 10:15:04 UTC (rev 24)
@@ -8,7 +8,7 @@
 -// Set PHP error handling to standard level
 -error_reporting(E_ALL ^ E_STRICT);
 +// Opsview patch: Remove unnecessary error messages
-+error_reporting(E_ALL ^ E_STRICT ^ E_DEPRECATED);
++error_reporting(E_ALL ^ E_STRICT ^ ( defined("E_DEPRECATED") ? E_DEPRECATED : 0 ));
 +ini_set('display_errors', 0);
  
  /**

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to