From f9182d1d3cad8497c6a909959108784515b87767 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 28 Oct 2007 17:14:03 +0100 Subject: [PATCH] PHP's gc sucks Signed-off-by: Florent Bruneau --- bin/banana.feedgen.php | 1 + bin/banana.spoolgen.php | 1 + bin/cron/banana.feedgen.php | 1 + include/banana/ml.inc.php | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/banana.feedgen.php b/bin/banana.feedgen.php index b573adf..6e25f22 100755 --- a/bin/banana.feedgen.php +++ b/bin/banana.feedgen.php @@ -10,6 +10,7 @@ require_once 'connect.db.inc.php'; require_once dirname(__FILE__).'/../include/banana/ml.inc.php'; +ini_set('memory_limit', '128M'); Banana::$mbox_helper = $globals->banana->mbox_helper; Banana::$spool_root = $globals->banana->spool_root; diff --git a/bin/banana.spoolgen.php b/bin/banana.spoolgen.php index 598d9fd..4fbc479 100755 --- a/bin/banana.spoolgen.php +++ b/bin/banana.spoolgen.php @@ -10,6 +10,7 @@ require_once 'connect.db.inc.php'; require_once dirname(__FILE__).'/../include/banana/ml.inc.php'; +ini_set('memory_limit', '128M'); Banana::$mbox_helper = $globals->banana->mbox_helper; Banana::$spool_root = $globals->banana->spool_root; diff --git a/bin/cron/banana.feedgen.php b/bin/cron/banana.feedgen.php index 1847368..4415a51 100755 --- a/bin/cron/banana.feedgen.php +++ b/bin/cron/banana.feedgen.php @@ -10,6 +10,7 @@ require_once 'connect.db.inc.php'; require_once dirname(__FILE__).'/../../include/banana/ml.inc.php'; +ini_set('memory_limit', '128M'); Banana::$mbox_helper = $globals->banana->mbox_helper; Banana::$spool_root = $globals->banana->spool_root; diff --git a/include/banana/ml.inc.php b/include/banana/ml.inc.php index 713a90f..1d72b5d 100644 --- a/include/banana/ml.inc.php +++ b/include/banana/ml.inc.php @@ -29,7 +29,7 @@ class MLBanana extends Banana function __construct($forlife, $params = null) { - global $globals; + global $globals; Banana::$spool_root = $globals->banana->spool_root; Banana::$spool_boxlist = false; Banana::$msgedit_canattach = true; -- 2.1.4