From: Jens Frank Date: Tue, 26 Apr 2005 20:01:28 +0000 (+0000) Subject: BUG#1509 - fix handling of unlimited setting '-1' for memory_limit X-Git-Tag: 1.5.0alpha1~117 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=fb4c79827ce0c314a8dcb29de04ac2b926ad8a22;p=lhc%2Fweb%2Fwiklou.git BUG#1509 - fix handling of unlimited setting '-1' for memory_limit --- 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! ";