Skip to content

Commit

Permalink
fix bug #13022 - E_STRICT not available on php4
Browse files Browse the repository at this point in the history
  • Loading branch information
roojs committed Feb 1, 2008
1 parent 84b6e8d commit 7c99e3d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Flexy.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,11 @@ function &staticQuickTemplate($file,&$t)
*/
function debug($string)
{


$_error_reporting = error_reporting(E_ALL ^ E_STRICT);
$newlvl = E_ALL;
if (defined("E_STRICT")) {
$newlvl = $newlvl & ~E_STRICT;
}
$_error_reporting = error_reporting($newlvl);

if (is_a($this,'HTML_Template_Flexy')) {
error_reporting( $_error_reporting );
Expand Down

0 comments on commit 7c99e3d

Please sign in to comment.