Re: [PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-30 Thread Dan Scott
PDO_ODBC from CVS didn't seem to want to compile with PHP5.0.5, so I tried Unified ODBC instead. On the bright(?) side, I'm seeing the same segfault problem with Unified ODBC compiled against the DB2 libraries as a shared module. So it doesn't seem to be a problem with the code of the extensions t

Re: [PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-24 Thread Wez Furlong
Curious; I haven't updated glibc or libstdc++ on my system, and I didn't get this problem a few weeks back. --Wez. On 9/24/05, Dan Scott <[EMAIL PROTECTED]> wrote: > This problem did not happen in the past on these distros, so I suspect > that it's actually a recent update to glibc/libstdc++/ld t

Re: [PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-24 Thread Dan Scott
On 9/23/05, Derick Rethans <[EMAIL PROTECTED]> wrote: > On Thu, 22 Sep 2005, Wez Furlong wrote: > > > Sounds like we're unloading the modules before calling the dtors again. > > The code says this: > /* 1. Call all possible shutdown functions registered with > register_shutdown_function() */ >

Re: [PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-23 Thread Derick Rethans
On Thu, 22 Sep 2005, Wez Furlong wrote: > Sounds like we're unloading the modules before calling the dtors again. The code says this: /* 1. Call all possible shutdown functions registered with register_shutdown_function() */ /* 2. Call all possible __destruct() functions */ zend_try

Re: [PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-22 Thread Wez Furlong
Actually, it's using php.ini to load pdo for the CLI, and not calling dl(). The script is just a test script, but this is still a PHP level bug that we should, IMO, fix before 5.1. --Wez. On 9/22/05, Andi Gutmans <[EMAIL PROTECTED]> wrote: > Yep, we reverted to the previous state because we bro

Re: [PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-22 Thread Andi Gutmans
Yep, we reverted to the previous state because we broke stuff. The real solution is to have a two phase shutdown. Is your script just for testing? (it's weird to have a persistent connection with a dl(), but that doesn't mean we shouldn't introduce another shutdown stage.) At 07:27 PM 9/22/200

[PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-22 Thread Wez Furlong
I'm getting this on shutdown with PHP 5.1 when using persistent connections with a dl'd PDO. Dan mentioned something similar with the ibm_db2 extension: ==23982== ==23982== Jump to the invalid address stated on the next line ==23982==at 0x1BCE5C0B: ??? ==23982==by 0x81BB4BC: zend_hash_appl