From fb4c79827ce0c314a8dcb29de04ac2b926ad8a22 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Tue, 26 Apr 2005 20:01:28 +0000 Subject: [PATCH] BUG#1509 - fix handling of unlimited setting '-1' for memory_limit --- config/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/index.php b/config/index.php index 17d34fb008..0bd6198a31 100644 --- a/config/index.php +++ b/config/index.php @@ -269,7 +269,7 @@ if( $conf->xml ) { $memlimit = ini_get( "memory_limit" ); $conf->raiseMemory = false; -if( empty( $memlimit ) ) { +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! "; -- 2.20.1