forked from extern/egroupware
fixed php.ini check for php compiled with --disable-memorylimit, ini_get() returns ''
This commit is contained in:
parent
3ae8be8eee
commit
3ae4338b2e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user