From: Alexander Ebert Date: Fri, 27 Sep 2013 16:07:00 +0000 (+0200) Subject: Using a maximum time limit of 5 minutes instead of infinite X-Git-Tag: 2.0.0_Beta_10~6^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27e0763f934a84e55ce676d42392e28788f86b89;p=GitHub%2FWoltLab%2FWCF.git 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 --- 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')) {