Convert create_function calls to true anonymous functions

With the recent bump in minimum PHP requirement as PHP 5.3, we can use closures and true anonymous functions, which are better, more readable and less memory intensive.

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Convert a few more create_function to anonymous functions

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Add back compatibility to functions in case mb_string is disabled

Signed-off-by: Shitiz Garg <mail@dragooon.net>
More code cleanup, shift globals to use keyword instead

Signed-off-by: Shitiz Garg <mail@dragooon.net>
More cleanup for closures

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Fix initial $smcFunc's text function declarations

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Merge pull request #1698 from Dragooon/convert-closures-duos

Convert create_functions to true anonymous functions/closures