From 538f713e3c81a3cc72eaee9713be75d1dc60aa1e Mon Sep 17 00:00:00 2001 From: Shawn Bulen Date: Thu, 4 Jun 2026 10:23:48 -0700 Subject: [PATCH] Disable time check if we can; better for long running jobs Signed-off-by: Shawn Bulen --- other/upgrade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/other/upgrade.php b/other/upgrade.php index 2dc4bccb62..ce23b7ea75 100644 --- a/other/upgrade.php +++ b/other/upgrade.php @@ -692,7 +692,8 @@ function loadEssentialData() if (version_compare(PHP_VERSION, '8.0.0', '>=')) require_once($sourcedir . '/Subs-Compat.php'); - @set_time_limit(600); + // These are long running tasks, attempt to disable time check... + @set_time_limit(0); $smcFunc['random_int'] = function($min = 0, $max = PHP_INT_MAX) { @@ -2743,7 +2744,8 @@ function nextSubstep($substep) return; } - @set_time_limit(300); + // These are long running tasks, attempt to disable time check... + @set_time_limit(0); if (function_exists('apache_reset_timeout')) @apache_reset_timeout();