From 0024b67aaf1b5fd79a2e73789a4c903364162e54 Mon Sep 17 00:00:00 2001 From: Ko- Date: Sat, 11 Mar 2017 17:04:21 +0100 Subject: Check that set_time_limit is not disabled before calling it Signed-off-by: Ko- --- console.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'console.php') diff --git a/console.php b/console.php index fb410ee6983..47cc2edf018 100644 --- a/console.php +++ b/console.php @@ -48,7 +48,9 @@ try { require_once __DIR__ . '/lib/base.php'; // set to run indefinitely if needed - set_time_limit(0); + if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { + @set_time_limit(0); + } if (!OC::$CLI) { echo "This script can be run from the command line only" . PHP_EOL; -- cgit v1.2.3