Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.7
-
MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
MDL-45027-master -
Description
As detected in MDL-44070, when you have dates outside the 32-bit range (after 2038) in availability conditions, and you are using a 32-bit PHP installation such as on Windows, this causes a rather catastrophic error. You can no longer see the activities on the course page, (for example in order to edit it to make the data correct).
I don't think there is a need to actually support this situation - by 2038 let's assume that even the Windows version of PHP will be using 64-bit ints - but I think failures like this should not completely break the page - there should be debugging errors but it should at least load.
In addition I notice there is a bug in the debugging warnings used about the invalid data (it doesn't actually display the name of the module that has the problem) so will fix this too.