Add set_time_limit( 0 ) to the installer; this should cut down on cases during instal...
authorBenjamin Lees <emufarmers@users.mediawiki.org>
Sat, 29 Aug 2009 07:40:18 +0000 (07:40 +0000)
committerBenjamin Lees <emufarmers@users.mediawiki.org>
Sat, 29 Aug 2009 07:40:18 +0000 (07:40 +0000)
RELEASE-NOTES
config/Installer.php

index f0384ef..d0a90ab 100644 (file)
@@ -437,6 +437,7 @@ this. Was used when mwEmbed was going to be an extension.
   if they contain non-ASCII characters
 * (bug 19055) maintenance/rebuildrecentchanges.php now purges
   Special:Recentchanges's RSS and Atom feed cache
+* The installer will now try to bypass PHP's max_execution_time
 
 == API changes in 1.16 ==
 
index 6d54d86..eebc2f5 100644 (file)
@@ -460,6 +460,11 @@ if( !function_exists( 'preg_match' ) )
        dieout( "The PCRE support module appears to be missing. MediaWiki requires the
        Perl-compatible regular expression functions." );
 
+# The installer can take a while, and we really don't want it to time out
+wfSuppressWarnings();
+set_time_limit( 0 );
+wfRestoreWarnings();
+
 $memlimit = ini_get( "memory_limit" );
 if( $memlimit == -1 ) {
        print "<li>PHP is configured with no <tt>memory_limit</tt>.</li>\n";