[PHP-DEV] Re: What's wrong with dl?

2006-09-18 Thread P
I never saw any argument justifying the removal of the dl() feature, even if the CLI SAPI keeps it. But I can give at least two against it : - If extensions cannot be loaded from the PHP code any more, it becomes impossible to autoload them when needed. As I wrote in another message, one of the

[PHP-DEV] Re: What's wrong with dl?

2006-09-18 Thread P
-Original Message- From: Zeev Suraski [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 11:55 AM To: LAUPRETRE François (P) Cc: [EMAIL PROTECTED]; internals@lists.php.net Subject: Re: [PHP-DEV] Re: What's wrong with dl? At 12:39 18/09/2006, P wrote: >I never saw any argum

Re: [PHP-DEV] Re: What's wrong with dl?

2006-09-18 Thread Rasmus Lerdorf
It is impossible to implement it reliably in any of the threaded sapis, so by definition it can only possibly work in a limited set of them which is why you shouldn't ever use it for any sort of portable code. CLI by definition is not threaded, so that is one case where it could stay. -Rasmus

Re: [PHP-DEV] Re: What's wrong with dl?

2006-09-18 Thread Zeev Suraski
At 12:39 18/09/2006, P wrote: I never saw any argument justifying the removal of the dl() feature, even if the CLI SAPI keeps it. But I can give at least two against it : - If extensions cannot be loaded from the PHP code any more, it becomes impossible to autoload them when needed. As I wrote

Re: [PHP-DEV] Re: What's wrong with dl?

2006-09-18 Thread Dan Scott
On 18/09/06, LAUPRETRE François (P) <[EMAIL PROTECTED]> wrote: Maybe the documentation should be updated to state that dl() is not deprecated in the CLI SAPI. Good suggestion - done! Dan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.

[PHP-DEV] RE : [PHP-DEV] Re: What's wrong with dl?

2006-09-18 Thread P
2006 11:55 AM To: LAUPRETRE François (P) Cc: [EMAIL PROTECTED]; internals@lists.php.net Subject: Re: [PHP-DEV] Re: What's wrong with dl? At 12:39 18/09/2006, P wrote: >I never saw any argument justifying the removal of the dl() feature, >even if the CLI SAPI >keeps it. But I c

Re: [PHP-DEV] RE : [PHP-DEV] Re: What's wrong with dl?

2006-09-28 Thread Richard Lynch
On Mon, September 18, 2006 6:20 am, LAUPRETRE François (P) wrote: > OK. Thanks for your answers, I didn't see this problem with each > thread restarting in an 'empty' state and having to reload extensions > through the autoloader. Even if loaded extensions could be registered > in shared memory, I

Re: [PHP-DEV] RE : [PHP-DEV] Re: What's wrong with dl?

2006-09-28 Thread Edin Kadribasic
Richard Lynch wrote: But if somebody is running Apache pre-fork whatsit... Why remove it from SAPIS that can support it? Even in prefork apache, a single apache child is used for many requests, dl() can be problematic. Edin -- PHP Internals - PHP Runtime Development Mailing List To unsubsc