]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
some memory and execution time management
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 12 Nov 2008 18:15:33 +0000 (13:15 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 12 Nov 2008 18:15:33 +0000 (13:15 -0500)
darcs-hash:20081112181533-5ed1f-d1c2d3ff28153afaf640eb127e9bcf4867952d36.gz

scripts/fixup_inboxes.php

index 415dea4dc71ed9373948b1364264e9fd570a7d9a..8436106ed9a1038ea375d250b25a3c6b18301399 100755 (executable)
@@ -24,6 +24,11 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
     exit();
 }
 
+ini_set("max_execution_time", "0");
+ini_set("max_input_time", "0");
+set_time_limit(0);
+mb_internal_encoding('UTF-8');
+
 define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
 define('LACONICA', true);
 
@@ -42,4 +47,6 @@ while ($user->fetch()) {
                                  'FROM subscription JOIN notice ON subscription.subscribed = notice.profile_id ' .
                                  'WHERE subscription.subscriber = ' . $user->id . ' ' .
                                  'AND notice.created >= subscription.created');
+       $inbox->free();
+       unset($inbox);
 }