Re: Importance of DB::disconnect() and DB_Result::free()
| From: | Tomas V.V.Cox | Date: | Tue, 18 Jun 2002 00:42:27 +0000 |
| Subject: | Re: Importance of DB::disconnect() and DB_Result::free() | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1698@lists.php.net to get a copy of this message | ||
Culley Harrelson wrote:
>
> How important is it to call DB::disconnect() and DB_Result::free() when you
> are done with them? Will the be automatically destroyed?
>
I had many problems with a busy ODBC to Navision connection saved with
$res->free() at the end of each SELECT query. In the next PEAR DB
version there is a new option "autofree" that will do automatically that
job for you (it will be released in the next days).
Tomas V.V.Cox