Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#194 MRBS doesn't work on PHP 5.2.6 (Debian stable)

Major
closed
nobody
MRBS (194)
5
2012-07-20
2010-03-29
Eric Gerlach
No

The problem is that on systemdefaults.inc.php:735, the constant function outputs a warning (because E_DEPRECATED is not defined for 5.2.6), and so the headers fail, etc, etc.

Patch which fixes the problem:

--- systemdefaults.inc.old.php 2010-03-29 12:43:58.000000000 -0400
+++ systemdefaults.inc.php 2010-03-29 12:44:23.000000000 -0400
@@ -732,7 +732,7 @@

// Make sure notice errors are not reported, they can break mrbs code:
$error_level = E_ALL ^ E_NOTICE;
-if (constant("E_DEPRECATED"))
+if (@constant("E_DEPRECATED"))
{
$error_level = $error_level ^ E_DEPRECATED;
}

Discussion

  • Another way is to change 'constant' to 'defined' and in fact this has already been checked into the trunk and will appear in the next release.

    Campbell

     


Anonymous


Cancel   Add attachments