From 915e588ea437cec46f9eee069cea9fc784a4dd56 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 15 Jan 2007 23:16:08 +0000 Subject: [PATCH] * (bug 1000) Clarify warning about memory_limit in installer * Suppress PHP warning about set_time_limit in installer when safe mode is on --- RELEASE-NOTES | 3 +++ config/index.php | 4 ++-- install-utils.inc | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 92a97dce81..2ae678775f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -74,6 +74,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 8628) Add user-aware block list link to Special:Blockip * (bug 8643) Correctly escape the page-specific CSS class for non-Monobook skins * (bug 8629) Document $wgFilterCallback +* (bug 1000) Clarify warning about memory_limit in installer +* Suppress PHP warning about set_time_limit in installer when safe mode is on + == Languages updated == diff --git a/config/index.php b/config/index.php index 29250a4180..fb189fa8c3 100644 --- a/config/index.php +++ b/config/index.php @@ -373,7 +373,7 @@ $conf->raiseMemory = false; if( empty( $memlimit ) || $memlimit == -1 ) { print "
  • PHP is configured with no memory_limit.
  • \n"; } else { - print "
  • PHP's memory_limit is " . htmlspecialchars( $memlimit ) . ". If this is too low, installation may fail! "; + print "
  • PHP's memory_limit is " . htmlspecialchars( $memlimit ) . ". "; $n = intval( $memlimit ); if( preg_match( '/^([0-9]+)[Mm]$/', trim( $memlimit ), $m ) ) { $n = intval( $m[1] * (1024*1024) ); @@ -381,7 +381,7 @@ if( empty( $memlimit ) || $memlimit == -1 ) { if( $n < 20*1024*1024 ) { print "Attempting to raise limit to 20M... "; if( false === ini_set( "memory_limit", "20M" ) ) { - print "failed."; + print "failed.
    " . htmlspecialchars( $memlimit ) . " seems too low, installation may fail!"; } else { $conf->raiseMemory = true; print "ok."; diff --git a/install-utils.inc b/install-utils.inc index 84fbc8e86d..3ff06ecee3 100644 --- a/install-utils.inc +++ b/install-utils.inc @@ -28,7 +28,7 @@ function install_version_checks() { global $wgCommandLineMode; $wgCommandLineMode = true; umask( 000 ); - set_time_limit( 0 ); + @set_time_limit( 0 ); } function copyfile( $sdir, $name, $ddir, $perms = 0664 ) { -- 2.20.1