Date index for Feb 2005
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Achievo 1.1 RC3 and PHP 5
I have been using Achievo for a while now, and after the upgrade to PHP 5, I
found that Achievo was dead. After looking on the site for a while, I have
noticed a bunch of other people mention that it would not work with PHP 5. I
dug around the code a bit and found that there were only a couple of changes
that needed to be made. The first is that the custom error handling routine
does not take into account the new E_STRICT error type, and the second was a
class member variable redefinition. These two very small fixes were all that
I saw. I have only tried this change with Achievo 1.1 RC3 and have not had a
chance to test it on any other versions. The patch file is given below or
can be found at
http://www.thegillis.net/examples/achievo/achievo1.1rc3.patch . Hope this
helps someone out.
diff -Naur achievo-1.1.org/atk/atktools.inc achievo-1.1/atk/atktools.inc
--- achievo-1.1.org/atk/atktools.inc Tue Feb 8 01:26:46 2005
+++ achievo-1.1/atk/atktools.inc Tue Feb 8 01:28:25 2005
dot
function atkErrorHandler($errtype, $errstr, $errfile, $errline)
{
// Don't handle notices, and don't do anything if dot
- if ($errtype==E_NOTICE || error_reporting()==0)
+ if ($errtype==E_NOTICE || $errtype==E_STRICT || error_reporting()==0)
{
return;
}
diff -Naur achievo-1.1.org/modules/calendar/class.base_weekview.inc
achievo-1.1/modules/calendar/class.base_weekview.inc
--- achievo-1.1.org/modules/calendar/class.base_weekview.inc Tue Feb 8
01:26:46 2005
+++ achievo-1.1/modules/calendar/class.base_weekview.inc Tue Feb 8
01:29:29 2005
dot
var $showGlobal;
var $owner;
var $viewerWidth = "100%";
- var $title = "";
/**
* constructor
From
-Brian Gillis
http://www.thegillis.net/