[Phpmyadmin-devel] about $common_functions

Marc Delisle marc at infomarc.info
Tue Jul 3 15:34:29 CEST 2012


Hi,
I just made a suggestion to Thilina but I want to validate it with
everyone.

I see a lot of
$common_functions = PMA_CommonFunctions::getInstance()

inside many functions of the same library. If we know that this library
is always called from one script, I believe it would be more efficient
to do this instead, inside the functions:

global $common_functions;

and ensure that $common_functions has been defined in the global scope
of the calling script.

-- 
Marc Delisle
http://infomarc.info





More information about the Developers mailing list