From a06d7f47beba22b144704dd2b6bd01c73aa024e3 Mon Sep 17 00:00:00 2001 From: Daniel Poggenpohl Date: Tue, 6 Dec 2022 17:09:45 +0100 Subject: [PATCH] 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 does not support 32-bit systems any longer, this is still worth doing to prevent future issues. --- analytics/classes/analysable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analytics/classes/analysable.php b/analytics/classes/analysable.php index 97faf596e8ecf..20018528a20d5 100644 --- a/analytics/classes/analysable.php +++ b/analytics/classes/analysable.php @@ -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.