MDL-72359 core: Changed MAX_TIME from 9999999999 to PHP_INT_MAX

This prevents automatic casting from int to double on 32 bit systems
(which have a maximum for integers of 2147483647)

Whilst Moodle will not support 32-bit systems for much longer, this is
still worth doing to prevent future issues.
This commit is contained in:
Daniel Poggenpohl 2022-12-06 17:09:45 +01:00 committed by Andrew Nicols
parent cccc00954d
commit 079a5fa104
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -38,7 +38,7 @@ interface analysable {
/**
* Max timestamp.
*/
const MAX_TIME = 9999999999;
const MAX_TIME = PHP_INT_MAX;
/**
* The analysable unique identifier in the site.