Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'console.php')
-rw-r--r--console.php4
1 files changed, 3 insertions, 1 deletions
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;