Merge pull request #7286 from eileenmcnaughton/CRM-16929-salvage
[civicrm-core.git] / xml / GenCode.php
index fe8fa0657670e9e8450c14b7d9a1ea3e5b75a561..76e6fa6c9d15730a8257b8d90534823c36cb6575 100644 (file)
@@ -14,7 +14,8 @@ switch ($memLimitUnit) {
 }
 
 if ($memLimit >= 0 and $memLimit < 536870912) {
-  ini_set('memory_limit', '512M');
+  // Note: When processing all locales, CRM_Core_I18n::singleton() eats a lot of RAM.
+  ini_set('memory_limit', -1);
 }
 date_default_timezone_set('UTC'); // avoid php warnings if timezone is not set - CRM-10844