fixed php.ini check for php compiled with --disable-memorylimit, ini_get() returns ''

This commit is contained in:
Ralf Becker 2003-11-06 22:56:31 +00:00
parent 3ae8be8eee
commit 3ae4338b2e

View File

@ -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;