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
-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
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
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
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.
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
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
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