From: Florent Bruneau Date: Sun, 28 Oct 2007 16:14:03 +0000 (+0100) Subject: PHP's gc sucks X-Git-Tag: xorg/0.9.16~253 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f9182d1d3cad8497c6a909959108784515b87767;p=platal.git PHP's gc sucks Signed-off-by: Florent Bruneau --- 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;