From 82d93b8766a1cd7b758fa1e4ed5bdb3bfa676030 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 30 May 2009 23:55:45 +0000 Subject: [PATCH] MDL-13204 execution time - give extra time to checker because they can run looong; backported from HEAD --- admin/xmldb/actions/check_bigints/check_bigints.class.php | 4 ++++ admin/xmldb/actions/check_indexes/check_indexes.class.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/admin/xmldb/actions/check_bigints/check_bigints.class.php b/admin/xmldb/actions/check_bigints/check_bigints.class.php index eb9f8a0e4f1..98fbf2a276e 100644 --- a/admin/xmldb/actions/check_bigints/check_bigints.class.php +++ b/admin/xmldb/actions/check_bigints/check_bigints.class.php @@ -208,6 +208,10 @@ class check_bigints extends XMLDBAction { $o.=' '; } $o.=' '; + /// Give the script some more time (resetting to current if exists) + if ($currenttl = @ini_get('max_execution_time')) { + @ini_set('max_execution_time',$currenttl); + } } $o.=' '; } diff --git a/admin/xmldb/actions/check_indexes/check_indexes.class.php b/admin/xmldb/actions/check_indexes/check_indexes.class.php index e5989e6839c..59a7b9cc097 100644 --- a/admin/xmldb/actions/check_indexes/check_indexes.class.php +++ b/admin/xmldb/actions/check_indexes/check_indexes.class.php @@ -213,6 +213,10 @@ class check_indexes extends XMLDBAction { $o.=' '; } $o.=' '; + /// Give the script some more time (resetting to current if exists) + if ($currenttl = @ini_get('max_execution_time')) { + @ini_set('max_execution_time',$currenttl); + } } $o.=' '; }