[dev] extensionExists() modification?

Jon Parise jon at horde.org
Wed Mar 3 21:20:06 PST 2004


> >As an aside, dl() is apparently being deprecated in PHP5, although it
> >will still work with a warning.
> 
> Huh. How will shared extensions be handled? Seems like that could have a
> negative effect on pecl...

The preferred method is to load them via php.ini.  That way, they'll
be loaded with the rest of PHP and persist for the lifetime of the
process.  Apparently, dl() makes things hairy because it introduces
new dynamic linkages in the middle of a request, and those linkages
are torn down at the end of the request.  I haven't read into the
details any further than that, though.

-- 
Jon Parise (jon at horde.org) :: The Horde Project (http://horde.org/)


More information about the dev mailing list