RE: [PHP-DEV] Bug #729: mysql_connect reuses connection ids

From: Date: Thu, 10 Sep 1998 01:00:14 +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-895@lists.php.net to get a copy of this message
On 9 Sep 98, at 19:48, Shane Caraveo wrote: > Ohh, I thought you were wanting two connections to the same database. If > we're connecting to different databases, we should not be overwriting > connections. That is kind of realy bad. mysql_connect() only knows what server you are connecting to, not what database you will be using on that server. There is no way for it to know whether or you will use different databases or not, especially since you can change databases on an existing connection. > I dont think we should worry about > any switch for this, we should make it default. You mean have mysql_connect() always return a fresh connection to the server? That seems a reasonable approach. I mean, why would someone call mysql_connect() more than once in a script if they didn't specifically want more than one connection to the database. But weren't you just arguing that this behavior would create too much overhead? :) I wonder... How does mysql_pconnect() act when called more than once in a script? I've never used it. Dave ---------------------------------------------------------------------- Dave Walton Webmaster, Postmaster Nordic Entertainment Worldwide walton@nordicdms.com http://www.nordicdms.com ---------------------------------------------------------------------- -- 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 (#895) next »