RE: [PHP-DEV] retrieving information about state of a function
| From: | Derick Rethans | Date: | Wed, 01 Oct 2003 10:00:21 +0000 |
| Subject: | RE: [PHP-DEV] retrieving information about state of a function | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4637@lists.php.net to get a copy of this message | ||
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 the manual here:)
> "if the given function has been defined".
>
> So it does NOT tell me anything about state.
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.
> If you had read my post, you knew I already do like you telling
> me, but do not agree with this solution, as it is better
> in performance etc. (see my post) to let PHP do so.
I did read it, I just don't see any point why it is useful.
Derick
--
"Interpreting what the GPL actually means is a job best left to those
that read the future by examining animal entrails."
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
International PHP Magazine http://php-mag.net/
-------------------------------------------------------------------------