Hi Derick,
> What the hell are you talking about?
I thought it would be obvious that I was ironically criticizing
the idea of disabling ini_get etc... And that i was just kidding.
Stefan
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.ph
On Wed, 1 Oct 2003 [EMAIL PROTECTED] wrote:
> > Oh and what about having disabled the ini_get/ini_set methods:
> > ...
> > print ini_get('disable_functions');
> > ...
> > Warning: ini_get,ini_set() has been disabled for security reasons
>
> This won't work in PHP 5.0 because it comes with print/e
Hi,
> Oh and what about having disabled the ini_get/ini_set methods:
> ...
> print ini_get('disable_functions');
> ...
> Warning: ini_get,ini_set() has been disabled for security reasons
This won't work in PHP 5.0 because it comes with print/echo disabled
by default for security reasons.
This wi
Oh and what about having disabled the ini_get/ini_set methods:
Warning: ini_get,ini_set() has been disabled for security reasons
That's making the problem quite enormous.
Dennis
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
> Of course... why do you NEED to know if it's not available or
> disabled... the result is the same: you can not use the function.
>
Sure.
But still it is a difference if my code is stable or not. Using an
own implementation telling about the disabled state makes it stable.
Also code should be per
On Wed, 1 Oct 2003, Dennis Sterzenbach wrote:
> >
> > You can either use function_exists() to check if a function is
> > available, or use "ini_get('disabled_functions')".
> >
> > Derick
> >
> function_exists() NEVER informs about the function being
> disabled or not it does inform about (I cite
>
> You can either use function_exists() to check if a function is
> available, or use "ini_get('disabled_functions')".
>
> Derick
>
function_exists() NEVER informs about the function being
disabled or not it does inform about (I cite the manual here:)
"if the given function has been defined".
So
On Wed, 1 Oct 2003, Dennis Sterzenbach wrote:
> Hi,
>
> I recognized there isn't any built-in function which
> tells the disabled/enabled state of some function.
> I think of something like:
>
> if (function_enabled("shell_exec")) {
>$info = shell_exec("dig myname.com");
> }
>
> telling if