Re: [PHP4BETA] unixODBC support not working with PHP4beta4

From: Date: Wed, 23 Feb 2000 08:25:03 +0000
Subject: Re: [PHP4BETA] unixODBC support not working with PHP4beta4
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-10703@lists.php.net to get a copy of this message
Hi, I've had a look again at odbc module shutdown. The problem is, that Zend lists are destroyed FIFO. This means that connections will be closed before their statement handles, potentially leading to segvs when trying to free an already freed statement. If you are lucky enough to have a driver manager or odbc libs that do validation of the handle passed, you can get around this. I see the following solutions: - Destroy Zend lists LIFO instead of FIFO - Reintroduce the php_register_pre_shutdown() function (is still in php.h but has vanished?) - Call zend_hash_apply() in request shutdown to do statement handle cleanup. What do you think? -Andreas -- Andreas Karajannis GMD National Research Center for Information Technology Schloss Birlinghoven, D-53754 Sankt Augustin Phone +49 2241 142948

« previous php.version4 (#10703) next »