Re: DB_DataObject and connection closing

From: Date: Wed, 22 Jan 2003 13:34:58 +0000
Subject: Re: DB_DataObject and connection closing
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12656@lists.php.net to get a copy of this message
Дьяченко А.В. wrote:
Hi, I was just browsing DataObject.php code and does not find any call to disconnect from database. I think this is not very good :-) Was I missing something? It assumes persistant connections, the new functions getDatabaseConnection() will allow you to do this now, but It's not that common in general usage.
I will however probably be adding in something like clear() or a destructor, so that the object can drop result set in the cache. I've never needed to disconnect in PHP (or too lazy to do it) so other may want to comment on whether it is considered essencial in some situations.... Regards Alan
Andew Djachenko
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.dev (#12656) next »