mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
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']);
|
$result = !!($ini_value & $args['value']);
|
||||||
break;
|
break;
|
||||||
case '>=':
|
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']) ||
|
($args['value'] == intval($args['value']) ||
|
||||||
substr($args['value'],-1) == substr($ini_value,-1));
|
substr($args['value'],-1) == substr($ini_value,-1));
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user