Re: problem in cleanup of cursors in oracle.c - can causephpto die!!

From: Date: Thu, 22 Apr 1999 12:36:12 +0000
Subject: Re: problem in cleanup of cursors in oracle.c - can causephpto die!!
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-5213@lists.php.net to get a copy of this message
"Thies C. Arntzen" wrote: > > On Thu, 22 Apr 1999, Stig S. Bakken wrote: > > > "Thies C. Arntzen" wrote: > > > > > > On Thu, 22 Apr 1999, Stig S. Bakken wrote: > > > > > > > What about not having a list destructor for cursors, but rather release > > > > all cursors associated with a connection in the connection destructor? > > > > > > yups, that's what i think we should do.... but -> how do i traverse a list > > > created like: > > > > > > ORACLE_GLOBAL(php3_oracle_module).le_cursor = > > > register_list_destructors(_close_oracur, NULL); > > > > > > ??? > > > > > > if you could point that out i will get a fix in place!!! > > > > Check out _php3_hash_apply in php3_hash.c > > hmm, that works on a HashTable* and not on the int that's returned by > _register_list_destructors... > > so -> how do i get the HashTable from that int???? > > tc The HashTable is ORACLE_GLOBAL(php3_oracle_module).resource_list See oracle.c:203 -Andreas -- Andreas Karajannis GMD National Research Center for Information Technology Schloss Birlinghoven, D-53754 Sankt Augustin Phone +49 2241 142948 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5213) next »