X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=xml%2FGenCode.php;h=76e6fa6c9d15730a8257b8d90534823c36cb6575;hb=4c056b9b0286d90f890bd795a9f6d54bf2e27397;hp=0f994a9b25b8721d321d1b41280e5cd8b457bcec;hpb=709e574bfc8b047d9e9f9a6ad84595bc3f560b54;p=civicrm-core.git diff --git a/xml/GenCode.php b/xml/GenCode.php index 0f994a9b25..76e6fa6c9d 100644 --- a/xml/GenCode.php +++ b/xml/GenCode.php @@ -14,11 +14,13 @@ 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 define('CIVICRM_UF', 'Drupal'); +define('CIVICRM_UF_BASEURL', '/'); require_once 'CRM/Core/ClassLoader.php'; CRM_Core_ClassLoader::singleton()->register();