/// no more headers and buffers
while(@ob_end_flush());
+/// increase memory limit (PHP 5.2 does different calculation, we need more memory now)
+ @raise_memory_limit('128M');
+
/// Start output log
$timenow = time();
//Execute backup's cron
//Perhaps a long time and memory could help in large sites
@set_time_limit(0);
- @raise_memory_limit("128M");
+ @raise_memory_limit("196M");
if (function_exists('apache_child_terminate')) {
// if we are running from Apache, give httpd a hint that
// it can recycle the process after it's done. Apache's
// that we'll take longer, and that the process should be recycled soon
// to free up memory.
@set_time_limit(0);
- @raise_memory_limit("128M");
+ @raise_memory_limit("196M");
if (function_exists('apache_child_terminate')) {
@apache_child_terminate();
}
//Adjust some php variables to the execution of this script
@ini_set("max_execution_time","3000");
- raise_memory_limit("128M");
+ raise_memory_limit("196M");
//Call the form, depending the step we are
if (!$launch) {
}
@ini_set("max_execution_time","3000");
- raise_memory_limit("128M");
+ raise_memory_limit("196M");
if (!$backup_unique_code = restore_precheck($destinationcourse,$pathtofile,$errorstr,true)) {
mtrace($debuginfo.'Failed restore_precheck (error was '.$errorstr.')');
//Adjust some php variables to the execution of this script
@ini_set("max_execution_time","3000");
- raise_memory_limit("128M");
+ raise_memory_limit("196M");
//Call the form, depending the step we are
//Adjust some php variables to the execution of this script
@ini_set("max_execution_time","3000");
- raise_memory_limit("128M");
+ raise_memory_limit("196M");
echo "<pre>\n";
}
/// Increase memory limits if possible
- raise_memory_limit('64M'); // We should never NEED this much but just in case...
+ raise_memory_limit('96M'); // We should never NEED this much but just in case...
/// Load up standard libraries
// that we'll take longer, and that the process should be recycled soon
// to free up memory.
@set_time_limit(0);
- @raise_memory_limit("64M");
+ @raise_memory_limit("96M");
if (function_exists('apache_child_terminate')) {
@apache_child_terminate();
}