Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c

From: Date: Mon, 06 Aug 2001 15:04:30 +0000
Subject: Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-62271@lists.php.net to get a copy of this message
Please don't just say it's useful, please say why :)
dl() has absolutely nothing over loading in php.ini, and has many drawbacks.

Zeev

At 17:55 06/08/2001, Andy wrote:
I disagree, is there any way dl() can be fixed, because it is a useful function... On Mon, 06 Aug 2001, Zeev Suraski wrote: At 17:49 06/08/2001, Stig Sæther Bakken wrote:
[Zeev Suraski <zeev@zend.com>]
By the way, if it's really important, we can look into supporting it. The way it was before - it worked in most cases (assuming you never tried to use a class before you dl() the corresponding extension), but could result in crashes in other cases. I don't think it's very important, though. dl() should most probably be deprecated from the language, as it's not supported in thread safe mode, it's slow and insecure. It also creates a host of interesting bugs/buglets that are difficult to hunt and fix. Other than that - it's great :)
Uhm, are you suggesting we take away the possibility of loading extensions at run-time?
Depending on which run-time you mean, yes. I don't think it should be possible to load extensions from within a PHP script. Note that dl() never really behaved properly. It was always broken to one degree or another. Also, it'll be completely unavailable in the thread safe version of PHP, so we might as well deprecate it completely. Loading extensions in the php.ini file is still very much possible. Zeev -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/

Thread (52 messages)

« previous php.dev (#62271) next »