From 27e0763f934a84e55ce676d42392e28788f86b89 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 27 Sep 2013 18:07:00 +0200 Subject: [PATCH] Using a maximum time limit of 5 minutes instead of infinite Anyway, using an "infinite" time limit is not that infinite as all, an infinite loops usually hits the memory limit pretty quick. Fixes #1511 --- wcfsetup/install/files/lib/system/WCF.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index f099744e7e..8ff2322b5e 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -27,8 +27,8 @@ use wcf\util\ClassUtil; use wcf\util\FileUtil; use wcf\util\StringUtil; -// try to disable execution time limit -@set_time_limit(0); +// try to set a time-limit of 5 minutes +@set_time_limit(300); // fix timezone warning issue if (!@ini_get('date.timezone')) { -- 2.20.1