[Tickets #944] NEW: modification needed (set_time_limit)

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Dec 6 05:40:22 PST 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=944
-----------------------------------------------------------------------
 Ticket     | 944
 Created By | j.micka at maylo.cz
 Summary    | modification needed (set_time_limit)
 Queue      | IMP
 Version    | 3.2.6
 State      | New
 Priority   | 2. Medium
 Type       | Enhancement
 Owners     | 
-----------------------------------------------------------------------


j.micka at maylo.cz (2004-12-06 05:40) wrote:

i'm using IMP on server, where safe mode is enabled.

it's only check for safe mode, because in safe mode is set_time_limit
function disabled and generates warning

--- imp/lib/base.php.orig       2004-12-06 11:17:27.000000000 +0100
+++ imp/lib/base.php    2004-12-06 11:18:30.000000000 +0100
@@ -52,7 +52,8 @@
 error_reporting($conf['debug_level']);

 // set max execution time according to config settings
-set_time_limit($conf['max_exec_time']);
+if (!ini_get('safe_mode'))
+  set_time_limit($conf['max_exec_time']);

 // set the umask according to config settings
 if (isset($conf['umask'])) {





More information about the bugs mailing list