A PHP memory_limit of '-1' is specified as 'unlimited'.
Before the change the checkmemory() function generates a Warning if the limit is set to -1. This shows up as a Warning in the Drupal Status Report, but more seriously also prevents the Drupal database update process (mydomain.com/update.php) from running.
After the change the value '-1' is accepted as meeting the requirement.
if ($mem < $min && $mem > 0) {
$results['severity'] = $this::REQUIREMENT_ERROR;
}
- elseif ($mem < $recommended && $mem != 0) {
+ elseif ($mem < $recommended && $mem != 0 && $mem != -1) {
$results['severity'] = $this::REQUIREMENT_WARNING;
}
elseif ($mem == 0) {