[dev] extensionExists() modification?
Michael M Slusarz
slusarz at bigworm.colorado.edu
Thu Mar 4 07:00:03 PST 2004
Quoting Chuck Hagenbuch <chuck at horde.org>:
> Quoting Michael M Slusarz <slusarz at bigworm.colorado.edu>:
>
>> Agreed, especially since extension_exists() is soooo slow.
>
> Is function_exists() any better? If so, do we want to reconsider the pedantic
> correctness of checking for the extension vs. the potential speed benefits of
> checking for a known function?
I'm not sure. The only problem with going this away (and I realize this is
*extremely unlikely*) is that if the local setup, for whatever reason, has a
function defined that shares the identical name with a function in an unloaded
extension, a function_exists('foo') will return true even though the extension
is not available. Don't know if this is splitting hairs too fine or not...
I don't have any benchmarking software set up at the moment, so if
someone else
could see if function_exists() is faster, that would be great.
michael
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder
More information about the dev
mailing list