From e877681c2001c78809a43bbccdb728142e8e59da Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 03 Oct 2011 05:25:33 -0400
Subject: [PATCH] - Disable time limit for CLI scripts (#1488109)

---
 CHANGELOG                    |    1 +
 program/include/clisetup.php |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index f7fb73f..df67dd8 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Disable time limit for CLI scripts (#1488109)
 - Fix misleading display when chaning editor type (#1488104)
 - Add loading indicator on contact delete
 - Fix bug where after delete message rows can be added to the list of another folder (#1487752)
diff --git a/program/include/clisetup.php b/program/include/clisetup.php
index 7a81811..01d7291 100644
--- a/program/include/clisetup.php
+++ b/program/include/clisetup.php
@@ -25,6 +25,8 @@
 
 require_once INSTALL_PATH . 'program/include/iniset.php';
 
+// Unset max. execution time limit, set to 120 seconds in iniset.php
+@set_time_limit(0);
 
 /**
  * Parse commandline arguments into a hash array

--
Gitblit v1.9.1