[textpattern commit] r3217 - Suppress E_STRICT and E_DEPRECATED in PHP 5.x+ when live.

12 views
Skip to first unread message

codesite...@google.com

unread,
Jun 16, 2009, 2:11:34 PM6/16/09
to txp...@googlegroups.com
Author: r.wetzlmayr
Date: Tue Jun 16 10:59:03 2009
New Revision: 3217

Modified:
development/4.0/textpattern/lib/txplib_misc.php

Log:
Suppress E_STRICT and E_DEPRECATED in PHP 5.x+ when live.

Modified: development/4.0/textpattern/lib/txplib_misc.php
==============================================================================
--- development/4.0/textpattern/lib/txplib_misc.php (original)
+++ development/4.0/textpattern/lib/txplib_misc.php Tue Jun 16 10:59:03 2009
@@ -1401,7 +1401,10 @@
}
elseif ($level == 'live') {
// don't show errors on screen
- error_reporting(E_ALL ^ (E_WARNING | E_NOTICE));
+ $suppress = E_WARNING | E_NOTICE;
+ if (defined('E_STRICT')) $suppress |= E_STRICT;
+ if (defined('E_DEPRECATED')) $suppress |= E_DEPRECATED;
+ error_reporting(E_ALL ^ $suppress);
@ini_set("display_errors","1");
}
else {

Reply all
Reply to author
Forward
0 new messages