From 10c22269179f283c60f77c9fe3cbb383d9787205 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 27 Sep 2007 05:35:54 +0200 Subject: [PATCH] [svn r13300] Added code to remove memory limit if possible --- main/newscorm/learnpath.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 6b74e4eaf0..15ca0af74d 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -7120,6 +7120,15 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') $this->error = 'PHP DOM functions not supported for PHP versions below 5.0'; return null; } + //remove memory and time limits as much as possible as this might be a long process... + if(function_exists('ini_set')) + { + ini_set('memory_limit',-1); + ini_set('max_execution_time',600); + //}else{ + //error_log('Scorm export: could not change memory and time limits',0); + } + //Create the zip handler (this will remain available throughout the method) $garbage_path = api_get_path(GARBAGE_PATH); $sys_course_path = api_get_path(SYS_COURSE_PATH);