Accept PHP memory_limit of -1 as meeting requirement
authormaynardsmith <tony.maynard-smith@ntlworld.com>
Thu, 7 Jan 2021 16:26:22 +0000 (16:26 +0000)
committerGitHub <noreply@github.com>
Thu, 7 Jan 2021 16:26:22 +0000 (16:26 +0000)
commit3b5567818951823b6bf1af862e6accfa7f6efc99
tree7f8c9571e7956002bf6bff9b23084728b7ab69c6
parent12a5995b78a2f79a9fb16c99eacd4fc2dbb359ad
Accept PHP memory_limit of -1 as meeting requirement

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.
Civi/Install/Requirements.php