elkarte/Elkarte — pull request #1362 by Spuds (2014-02-10 20:10:37+00:00)
Title: Create functions to permenant functions for preg_replace_callbacks

I converted all (well there is one in a template I did not, and may have missed some of course) create functions that were done in preg_replace_callbacks to be permanent functions.

The create function is fine, but in the event a preg_replace_callback with one gets called in a loop or recursively it will eat up some level of memory creating the function each time nom nom nom ....

Most of these help very little, others a bit more. This is all in response to the OOM issues reported.