RE: [PHP-DEV] Bug #729: mysql_connect reuses connection ids
| From: | Zeev Suraski | Date: | Wed, 09 Sep 1998 22:14:46 +0000 |
| Subject: | RE: [PHP-DEV] Bug #729: mysql_connect reuses connection ids | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-891@lists.php.net to get a copy of this message | ||
At 12:34 09/09/98 -0400, Shane Caraveo wrote:
>It only re-uses when connecting to the same database. Why have multiple
>connections to the same database? It just creates more overhead in your
>script, your doubling (or more) you connections so you will run out of
>connections faster, and if coding carefully, there just is no need for it.
It causes problems since you can't 'black-box' any code portion that
connects to an SQL server and disconnects from it, since disconnecting may
close other instances of that same link, outside the black-boxed code.
Zeev
--
Zeev Suraski <zeev@php.net>
For a PGP public key, finger bourbon@netvision.net.il
--
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