From ad78191f72e58e890a951632c42770c6989c7d62 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 3 Jan 2009 06:00:30 +0000 Subject: [PATCH] (bug 16084) Default memory limit should be increased --- config/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/index.php b/config/index.php index 2810561f3a..4159c69ab7 100644 --- a/config/index.php +++ b/config/index.php @@ -461,8 +461,8 @@ if( empty( $memlimit ) || $memlimit == -1 ) { $n = intval( $m[1] * (1024*1024) ); } if( $n < 20*1024*1024 ) { - print "Attempting to raise limit to 20M... "; - if( false === ini_set( "memory_limit", "20M" ) ) { + print "Attempting to raise limit to 50M... "; + if( false === ini_set( "memory_limit", "50M" ) ) { print "failed.
" . htmlspecialchars( $memlimit ) . " seems too low, installation may fail!"; } else { $conf->raiseMemory = true; @@ -1661,7 +1661,7 @@ set_include_path( implode( PATH_SEPARATOR, \$path ) . PATH_SEPARATOR . get_inclu require_once( \"\$IP/includes/DefaultSettings.php\" ); # If PHP's memory limit is very low, some operations may fail. -" . ($conf->raiseMemory ? '' : '# ' ) . "ini_set( 'memory_limit', '20M' );" . " +" . ($conf->raiseMemory ? '' : '# ' ) . "ini_set( 'memory_limit', '50M' );" . " if ( \$wgCommandLineMode ) { if ( isset( \$_SERVER ) && array_key_exists( 'REQUEST_METHOD', \$_SERVER ) ) { -- 2.20.1