BUG#1509 - fix handling of unlimited setting '-1' for memory_limit
authorJens Frank <jeluf@users.mediawiki.org>
Tue, 26 Apr 2005 20:01:28 +0000 (20:01 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Tue, 26 Apr 2005 20:01:28 +0000 (20:01 +0000)
config/index.php

index 17d34fb..0bd6198 100644 (file)
@@ -269,7 +269,7 @@ if( $conf->xml ) {
 
 $memlimit = ini_get( "memory_limit" );
 $conf->raiseMemory = false;
-if( empty( $memlimit ) ) {
+if( empty( $memlimit ) || $memlimit == -1 ) {
        print "<li>PHP is configured with no <tt>memory_limit</tt>.</li>\n";
 } else {
        print "<li>PHP's <tt>memory_limit</tt> is " . htmlspecialchars( $memlimit ) . ". <strong>If this is too low, installation may fail!</strong> ";