Re: [PHP-DEV] dl() unload / module shutdown issue still unresolved

2004-10-26 Thread Rasmus Lerdorf
On Tue, 26 Oct 2004, Shane Caraveo wrote: > Rasmus Lerdorf wrote: > > On Tue, 26 Oct 2004, Wez Furlong wrote: > > > >>It should be safe to never ever dlclose() a module. > > > > > > Do you mean never to dlclose() a module loaded via dl() at request time or > > do you mean that in general it should

Re: [PHP-DEV] dl() unload / module shutdown issue still unresolved

2004-10-26 Thread Shane Caraveo
Rasmus Lerdorf wrote: On Tue, 26 Oct 2004, Wez Furlong wrote: It should be safe to never ever dlclose() a module. Do you mean never to dlclose() a module loaded via dl() at request time or do you mean that in general it should be safe to never dlclose() a module even if it came in via an extension

Re: [PHP-DEV] dl() unload / module shutdown issue still unresolved

2004-10-26 Thread Wez Furlong
Urgh. On Tue, 26 Oct 2004 15:42:09 -0700 (PDT), Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > It's a bit tricky. When Apache starts up it does a double-pass of the > conf files in order to do a syntax check. It needs to load all its > modules in order to do this so our libphp4.so gets loaded which

Re: [PHP-DEV] dl() unload / module shutdown issue still unresolved

2004-10-26 Thread Rasmus Lerdorf
On Tue, 26 Oct 2004, Wez Furlong wrote: > On Tue, 26 Oct 2004 15:23:45 -0700 (PDT), Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > > On Tue, 26 Oct 2004, Wez Furlong wrote: > > > It should be safe to never ever dlclose() a module. > > > > Do you mean never to dlclose() a module loaded via dl() at requ

Re: [PHP-DEV] dl() unload / module shutdown issue still unresolved

2004-10-26 Thread Wez Furlong
On Tue, 26 Oct 2004 15:23:45 -0700 (PDT), Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > On Tue, 26 Oct 2004, Wez Furlong wrote: > > It should be safe to never ever dlclose() a module. > > Do you mean never to dlclose() a module loaded via dl() at request time or > do you mean that in general it shou

Re: [PHP-DEV] dl() unload / module shutdown issue still unresolved

2004-10-26 Thread Rasmus Lerdorf
On Tue, 26 Oct 2004, Wez Furlong wrote: > It should be safe to never ever dlclose() a module. Do you mean never to dlclose() a module loaded via dl() at request time or do you mean that in general it should be safe to never dlclose() a module even if it came in via an extension line in the php.ini

[PHP-DEV] dl() unload / module shutdown issue still unresolved

2004-10-26 Thread Wez Furlong
Just noticed that I still have a pending commit: Can someone more familiar with the load order figure out what happened to break this? The problem is that when you dl(), PHP segfaults during shutdown for any dl()'d extension that creates objects and where the script has globals referencing them.