Set memory_limit to 64M and disable debug (and backtraces) in CLI scripts.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 26 Oct 2010 20:14:59 +0000 (22:14 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 26 Oct 2010 20:22:10 +0000 (22:22 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
bin/connect.db.inc.php
bin/search.rebuild_db.php

index 22ed0a7..4ecedd8 100644 (file)
@@ -19,6 +19,7 @@
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************/
 
+ini_set('memory_limit', '64M');
 ini_set('include_path', dirname(__FILE__) . '/../core/include:'
                       . dirname(__FILE__) . '/../include:'
                       . dirname(__FILE__) . '/../core/classes:'
@@ -28,5 +29,8 @@ require_once('xorg.inc.php');
 
 new Xorg('core');
 
+// Do not store backtraces
+Platal::globals()->debug = 0;
+
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>
index 7e35247..11220f2 100755 (executable)
@@ -22,9 +22,6 @@
 
 require './connect.db.inc.php';
 
-ini_set('memory_limit', '16M');
-$globals->debug = 0; // Do not store backtraces
-
 $res = XDB::iterRow('SELECT  pid
                        FROM  profiles');
 $i = 0;