Index: branches/unlabeled/unlabeled-1.39.2/kernel/startup.php =================================================================== diff -u -r4376 -r4564 --- branches/unlabeled/unlabeled-1.39.2/kernel/startup.php (.../startup.php) (revision 4376) +++ branches/unlabeled/unlabeled-1.39.2/kernel/startup.php (.../startup.php) (revision 4564) @@ -65,7 +65,7 @@ if( file_exists(FULL_PATH.'/debug.php') && !defined('DEBUG_MODE') ) include_once(FULL_PATH.'/debug.php'); if( !defined('DEBUG_MODE') ) error_reporting(0); -ini_set('memory_limit', '32M'); +ini_set('memory_limit', constOn('IS_INSTALL') ? -1 : '32M'); ini_set('include_path', '.'); $kernel_version = "1.0.0"; Index: branches/unlabeled/unlabeled-1.100.2/admin/install.php =================================================================== diff -u -r4238 -r4564 --- branches/unlabeled/unlabeled-1.100.2/admin/install.php (.../install.php) (revision 4238) +++ branches/unlabeled/unlabeled-1.100.2/admin/install.php (.../install.php) (revision 4564) @@ -1,7 +1,8 @@ Compile(); $application->DB->Query( sprintf($theme_update_sql, $stylesheet_id, $application->DB->qstr( getArrayValue($css_hash,$stylesheet_id) ) ) ); } - $application->Done(); + + // do redirect, because upgrade scripts can eat a lot or memory used for language pack upgrade operation + $application->Redirect('install', Array('state' => 'languagepack_upgrade'), '', 'install.php'); // compile stylesheets: end $state = 'languagepack_upgrade';