From 3ae4338b2e90923e6601428c18cea61fce87c1e4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 6 Nov 2003 22:56:31 +0000 Subject: [PATCH] fixed php.ini check for php compiled with --disable-memorylimit, ini_get() returns '' --- setup/check_install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/check_install.php b/setup/check_install.php index 00a2134474..f39bc50fab 100644 --- a/setup/check_install.php +++ b/setup/check_install.php @@ -321,7 +321,8 @@ function php_ini_check($name,$args) $result = !!($ini_value & $args['value']); break; case '>=': - $result = $ini_value && intval($ini_value) >= intval($args['value']) && + $result = !$ini_value || // value not used, eg. no memory limit + intval($ini_value) >= intval($args['value']) && ($args['value'] == intval($args['value']) || substr($args['value'],-1) == substr($ini_value,-1)); break;