> > zeev                Wed Feb 11 06:46:21 2004 EDT
> > 
> >   Modified files:              
> >     /php-src/ext/standard   dl.c 
> >   Log:
> >   Finally add a notice to hint people that using dl() is a bad idea...
> 
> > +           zend_error(E_STRICT, "dl() is deprecated - use > extension= in
> > your php.ini");
> 
> I'm wondering why _ONLY_ PHP got problems with auto* tools and dl... And
> All others stuffs around use such things without problem.
> A _strong_ opposition to deprecate dl (if anyone cares).

Agreed.  It's far easier to develop a new extension using dl()
using Apache on UNIX environments, assuming that the
extension directive can only be changed by PHP_INI_SYSTEM.

Forcing the extension= directive in php.ini means that every Apache
request for a PHP file executes the development extension initialization
code, as well as requiring that I setup another Apache .conf file,
run a separate Apache instance on a different port, and create the
proper virtual hosts, since it's possible to make the primary webserver
unusuable with incorrectly written initialization subroutines.  
With dl() it only happens in the Apache
threads/requests that explicitly load the extension; it's unlikely
that this thread will kill the whole webserver if it has development
problems.

-Bob

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to