X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=xml%2FGenCode.php;h=dc071c795aeb64cb2c9bf79c18cbbaafe5bd05f5;hb=2db35bf6ee39bf6d611681a9163515fa89115765;hp=fe8fa0657670e9e8450c14b7d9a1ea3e5b75a561;hpb=c219b4c822b7539da67f5eb9fdcde48b562720ed;p=civicrm-core.git diff --git a/xml/GenCode.php b/xml/GenCode.php index fe8fa06576..dc071c795a 100644 --- a/xml/GenCode.php +++ b/xml/GenCode.php @@ -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 @@ -30,7 +31,7 @@ $genCode = new CRM_Core_CodeGen_Main( '../sql/', // $sqlCodePath '../', // $phpCodePath '../templates/', // $tplCodePath - array('../packages/Smarty/plugins', '../CRM/Core/Smarty/plugins'), // smarty plugin dirs + NULL, // IGNORE @$argv[3], // cms empty($argv[2]) ? NULL : $argv[2], // db version empty($argv[1]) ? 'schema/Schema.xml' : $argv[1], // schema file