Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Andi Gutmans
I don't know if we should get into this. Do we *really* care if we crash on exit? We are talking about MSHUTDOWN not RSHUTDOWN here. It's not an ideal situation but I wouldn't want screw things in PHP just for these dumb shared libraries :) Andi At 02:36 PM 1/20/2004 +0100, Ard Biesheuvel

Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Ard Biesheuvel
I don't know if we should get into this. Do we *really* care if we crash on exit? Are you serious ?? Of course we care about segfaults, don't we, even if it's 'only' on exit ?? We are talking about MSHUTDOWN not RSHUTDOWN here. It's not an Depends if you use dl() or load from php.ini. If

Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Andi Gutmans
At 12:42 PM 1/21/2004 +0100, Ard Biesheuvel wrote: I don't know if we should get into this. Do we *really* care if we crash on exit? Are you serious ?? Of course we care about segfaults, don't we, even if it's 'only' on exit ?? What I'm saying is that if it were to require some ugly hacks in PHP

Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Ard Biesheuvel
dl() is evil and should be deprecated. Actually that reminds me to add an E_STRICT about it. Shared libraries should only be loaded via php.ini. How about setting 'enable_dl' to 'Off' in php.ini-recommended ? -- Ard -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Pierre-Alain Joye
On Wed, 21 Jan 2004 14:06:55 +0100 Ard Biesheuvel [EMAIL PROTECTED] wrote: dl() is evil and should be deprecated. Actually that reminds me to add an E_STRICT about it. Shared libraries should only be loaded via php.ini. How about setting 'enable_dl' to 'Off' in php.ini-recommended ?

Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Wez Furlong
I agree; we can't deprecate dl(). There are some very common legitimate cases where it is really useful, such as loading extensions that are not often needed into a CGI (you don't want those in php.ini as they can slow down your process startup). --Wez. dl() is evil and should be deprecated.

Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Ard Biesheuvel
Wez Furlong wrote: I agree; we can't deprecate dl(). There are some very common legitimate cases where it is really useful, such as loading extensions that are not often needed into a CGI (you don't want those in php.ini as they can slow down your process startup). I agree, but perhaps we should

Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Pierre-Alain Joye
On Wed, 21 Jan 2004 14:52:57 +0100 Ard Biesheuvel [EMAIL PROTECTED] wrote: Changing the recommended setting of enable_dl is a first step. I disagree. Set enable_dl Off in the recommanded php.ini will make it disabled in many situations. This is not something good. But this discussions sounds

Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Ard Biesheuvel
Changing the recommended setting of enable_dl is a first step. I disagree. Set enable_dl Off in the recommanded php.ini will make it disabled in many situations. This is not something good. But this discussions sounds like 'Do we have to educate endusers?'. Wez sample usage is the perfect

Re: [PHP-DEV] solution for DL's using atexit()

2004-01-21 Thread Shane Caraveo
Why is PHP the only scripting language that has an issue with loading binary extensions at run time? :( Shane Ard Biesheuvel wrote: Wez Furlong wrote: I agree; we can't deprecate dl(). There are some very common legitimate cases where it is really useful, such as loading extensions that are

[PHP-DEV] solution for DL's using atexit()

2004-01-20 Thread Ard Biesheuvel
Hello group, I'm looking for a way to fix http://bugs.php.net/26968. This bug is caused by the underlying client .so using atexit() to register a cleanup function. As the library is unloaded before process shutdown, the atexit() stack no longer contains a valid reference when it is called,