]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-irc-mem.patch
- 1GB memory limit!
[packages/eventum.git] / eventum-irc-mem.patch
1 --- eventum-1.7.0/misc/irc/bot.php~     2005-12-29 21:27:25.000000000 +0200
2 +++ eventum-1.7.0/misc/irc/bot.php      2005-12-30 00:14:31.000000000 +0200
3 @@ -28,6 +28,8 @@
4  // @(#) $Id$
5  //
6  
7 +ini_set("memory_limit", "256M");
8 +
9  include_once("../../config.inc.php");
10  include_once(APP_INC_PATH . "db_access.php");
11  include_once(APP_INC_PATH . "class.auth.php");
12 @@ -36,8 +38,6 @@
13  include_once(APP_INC_PATH . "class.user.php");
14  include_once(APP_PEAR_PATH . 'Net/SmartIRC.php');
15  
16 -ini_set("memory_limit", "256M");
17 -
18  // the following is the list of IRC channels that the bot should connect to,
19  // and the associated project name
20  $channels = array(
21
22
23 # these should be sent to upstream too, as memory limit setting should be the very first thing
24 --- eventum-1.7.1/misc/process_mail_queue.php~  2006-06-19 17:50:25.747786986 +0300
25 +++ eventum-1.7.1/misc/process_mail_queue.php   2006-06-19 17:59:33.490045125 +0300
26 @@ -27,7 +27,9 @@
27  // +----------------------------------------------------------------------+
28  //
29  // @(#) $Id$
30 -//
31 +
32 +ini_set("memory_limit", "256M");
33 +
34  include_once("../config.inc.php");
35  include_once(APP_INC_PATH . "db_access.php");
36  include_once(APP_INC_PATH . "class.mail_queue.php");
37 @@ -60,8 +62,6 @@
38      exit;
39  }
40  
41 -ini_set("memory_limit", "256M");
42 -
43  // handle only pending emails
44  $limit = 50;
45  Mail_Queue::send('pending', $limit);
46 --- eventum-1.7.1/misc/download_emails.php~     2006-06-19 18:13:23.698634331 +0300
47 +++ eventum-1.7.1/misc/download_emails.php      2006-06-19 18:16:24.672688641 +0300
48 @@ -27,15 +27,15 @@
49  // +----------------------------------------------------------------------+
50  //
51  // @(#) $Id$
52 -//
53 +
54 +ini_set("memory_limit", "256M");
55 +
56  include_once("../config.inc.php");
57  include_once(APP_INC_PATH . "class.support.php");
58  include_once(APP_INC_PATH . "class.lock.php");
59  include_once(APP_INC_PATH . "class.project.php");
60  include_once(APP_INC_PATH . "db_access.php");
61  
62 -ini_set("memory_limit", "256M");
63 -
64  // we need the IMAP extension for this to work
65  if (!function_exists('imap_open')) {
66      echo "Error: Eventum requires the IMAP extension in order to download messages saved on a IMAP/POP3 mailbox.\n";
This page took 0.564703 seconds and 3 git commands to generate.