-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.9, 3.11.2, 3.11.11, 4.0, 4.0.5, 4.1
-
PHP 7.4 32-Bit version
defines a constant that is used in the user.php analysable here:
https://github.com/moodle/moodle/blob/036800d99debfe61dde45f61292bc5ad44ab7cb0/analytics/classes/user.php#L190-L192
This again is used in the time splitting periodic class here
https://github.com/moodle/moodle/blob/036800d99debfe61dde45f61292bc5ad44ab7cb0/analytics/classes/local/time_splitting/periodic.php#L82-L84
DateTimeImmutable needs an int timestamp to work. 32 Bit PHP can't handle the integer value 9999999999, so it converts it to float. This leads to the warning:
PHP Warning: DateTimeImmutable::setTimestamp() expects parameter 1 to be integer, float given in /moodle/application/htdocs/moodle/moodle_stacks/analytics/classes/local/time_splitting/periodic.php on line 83
Possible solution: Smaller value for timestamp?
- caused a regression
-
MDL-82047 Remove broken 32-bit checks of Analytics max time constant
-
- Closed
-
- has a non-specific relationship to
-
MDL-74905 Decide Moodle 4.2 requirements and push them to environment.xml (due date: 2022-12-26)
-
- Closed
-
- has been marked as being related by
-
MDL-64783 Create a new model for upcoming activities due
-
- Closed
-
-
MDL-76724 Decide Moodle 4.3 requirements and push them to environment.xml (due date: 2023-05-08)
-
- Closed
-
-
MDL-78496 Decide Moodle 4.4 requirements and push them to environment.xml (due date for voting: 2023-11-13)
-
- Closed
-