On Mon, Mar 03, 2003 at 10:03:08AM -0500, Marc Delisle wrote:
Problem is, in this case, function_exists('ini_get') is true even if ini_get() is disabled.
This is a problem, indeed. As far as I can say, we can only work around this by adding a new directive to the config file, e.g. $cfg['IniGetDisabled'] with default value FALSE. In this case we simply replace ...
function_exists('ini_get')
... by ...
(!$cfg['IniGetDisabled'] && function_exists('ini_get'))
Just taking this generic for a sec, does somebody want to throw together PMA_function_exists() that does the function_exists check + check if it's disabled for a better result?
I agree to take this generic, but just *how* can we check if it's disabled? Try it and look for an error?
Sounds like a good route to me.
I'm trying to hack together a testcase quickly.