瀏覽代碼

- Display PHP errors during setup instead of hiding them ! (Trac #321)
- Set a longer timeout during setup (Trac #314)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1042 a333f486-631f-4898-b8df-5754b55c2be0

dflaven 14 年之前
父節點
當前提交
077d83f1d4
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      setup/index.php

+ 6 - 0
setup/index.php

@@ -1245,6 +1245,12 @@ catch(Exception $e)
 }
 try
 {
+	// Set a long (at least 4 minutes) execution time for the setup to avoid timeouts during this phase
+	ini_set('max_execution_time', max(240, ini_get('max_execution_time')));
+	// While running the setup it is desirable to see any error that may happen
+	ini_set('display_errors', true);
+	ini_set('display_startup_errors', true);
+	
 	$aParams = array('licence_ok', 'db_server', 'db_user', 'db_pwd','db_name', 'new_db_name', 'db_prefix', 'module', 'sample_data', 'auth_user', 'auth_pwd', 'language');
 	foreach($aParams as $sName)
 	{