Thanks for informing me about this bug. We have a function name collision with cal_days_in_month(). If you compile PHP with --enable-calendar, PHP will have its own cal_days_in_month() declared. So, I have renamed our function to get around this.
Basically, all instances of cal_days_in_month() in misc/calendar.inc has been renamed to _cal_days_in_month() and that fixes the problem. You can see the changeset here:
Hi Chris,
When I go to the Interviews - View by Date page I get the following error message:
Fatal error: Cannot redeclare cal_days_in_month() in /var/www/html/mamook/misc/calendar.inc on line 288
Thanks for your help.
Richard Morency
BCIT
Hi Richard,
Thanks for informing me about this bug. We have a function name collision with cal_days_in_month(). If you compile PHP with --enable-calendar, PHP will have its own cal_days_in_month() declared. So, I have renamed our function to get around this.
Basically, all instances of cal_days_in_month() in misc/calendar.inc has been renamed to _cal_days_in_month() and that fixes the problem. You can see the changeset here:
http://www.mamook.net/projects/mamook/changeset/641
We never encountered this problem because we don't have our PHP setup with the --enable-calendar switch.
Cheers
-Chris Chan
Mamook Core Developer