diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-11-12 13:15:33 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-11-12 13:15:33 -0500 |
commit | 9cd913a2dd94474588857fdea6bcb516d0d4557a (patch) | |
tree | 5715419f9d4ed1595c94ccca7f2b88850a8e71df /scripts | |
parent | 52431fa58b4626f4ad76b2e12f356568a726454e (diff) |
some memory and execution time management
darcs-hash:20081112181533-5ed1f-d1c2d3ff28153afaf640eb127e9bcf4867952d36.gz
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/fixup_inboxes.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php index 415dea4dc..8436106ed 100755 --- a/scripts/fixup_inboxes.php +++ b/scripts/fixup_inboxes.php @@ -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); } |