[Phpmyadmin-devel] about $common_functions

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

I just made a suggestion to Thilina but I want to validate it with

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

More information about the Developers mailing list