SVN 5867 Out of memory in config_gedcom
Brought to you by:
canajun2eh,
yalnifj
config_gedcom requires an inordinate amount of memory to run. Error happens everytime in loadLangFile (functions.php). I started with 64M, then I switched to English and could get a little bit further. I returned to Spanish and raised the limit to 96MB and it improved, but failed further down the list of options. Then I raised to 128 and could get more, but still a mistake. I have room to increase my memory limit, but there is something weird here. It seems like the language arrays are being leaked, so they stay allocated in memory and get reloaded again and again.
I am not sure if require_once instead of require would do.
My host has PHP 5.2.9, in case it matters.
We can't use require_once, as we need to load/reload the language files. For example, when sending emails to users who have selected a different language, we need to switch, then send the email, then switch back. IIRC there are other cases where we do this to pick up some text from other language files.