On Mon, Mar 03, 2003 at 08:05:48AM -0800, robbat2@orbis-terrarum.net wrote:
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.
Umm, on PHP 4.3.0 I get results that like the following: (with ini_get disabled): function_exists('ini_get') returns FALSE
which is not what was mentioned before!
I can't quite get code to behave right anyway but everybody can take a look at it in the meantime: http://www.orbis-terrarum.net/~robbat2/phptest/