From:             [EMAIL PROTECTED]
Operating system: red hat linux
PHP version:      4.0.4pl1
PHP Bug Type:     Feature/Change Request
Bug description:  mysql_connect not making a new connection each time it is called

In the documentation, it says that one way mysql_pconnect and mysql_connect is that in 
pconnect, it opens a new connection only if there is not one open to the same 
host,username,password tuple.  However, mysql_connect does the same thing.

The thing I find annoying about the fact that mysql_connect not automatically opening 
a new connection is that there are some functions that change the attributes of a 
connection overall.  When you call mysql_select_db on a connection, you are changing 
the database for every instance that is referencing that same connection.  There is no 
way to make one connection that refers to one database, and one that refers to another.

Really, there should be two mysql_connect functions:  

1) mysql_new_connect 

and 

2) mysql_connect

mysql_new_connect would make a new connection to the database no matter what.


-- 
Edit Bug report at: http://bugs.php.net/?id=10032&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to