#19609 [Opn->Fbk]: mysql_pconnect not verifing host,user and pass

From: Date: Thu, 26 Sep 2002 11:25:44 +0000
Subject: #19609 [Opn->Fbk]: mysql_pconnect not verifing host,user and pass
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20393@lists.php.net to get a copy of this message
 ID:               19609
 Updated by:       mfischer@php.net
 Reported By:      gijs@spill.nl
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQL related
 Operating System: Redhat 7.X
 PHP Version:      4.2.2
 New Comment:

Are you sure you are not reusing the old link and changing the databse?
This of course changes all other scripts database which happen to use
the same persistent resource link in their scripts.


Previous Comments:
------------------------------------------------------------------------

[2002-09-26 05:37:31] gijs@spill.nl

I have replicated this error op different servers. 

mysql_pconnect does not look at the host,user or password but just
assumes the (persistent) link is okee and uses it.

This way once there is a perssistant link and I want to change to a
other DB server with a new script mysql_pconnect just takes the old
link en does not check if the host,user or password are the same.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19609&edit=1



Thread (6 messages)

« previous php.bugs (#20393) next »