note 77154 added to function.mysql-pconnect

From: Date: Fri, 17 Aug 2007 08:00:51 +0000
Subject: note 77154 added to function.mysql-pconnect
Groups: php.notes 
Request: Send a blank email to php-notes+get-129559@lists.php.net to get a copy of this message
If you are using mysql_pconnect(), and say the MySQL server has five persistent connection pooled for that client. Now mysql_pconnect can return any one of them. So, If you are expecting that mysql_pconnect will return always use the same persistent connection, that is not the case. So, say you are executing after connecting with mysql_pconnect: set @aa=6; And in another page you have again done mysql_pconnect, and executed: select @aa; That will not necessarily return '6' as the result! Because the second mysql_pconnect can take another persistent connection from that server's connection pool. ---- Server IP: 203.199.69.133 Probable Submitter: 61.95.199.19 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-pconnect.php Edit -- https://master.php.net/note/edit/77154 Del: integrated -- https://master.php.net/note/delete/77154/integrated Del: useless -- https://master.php.net/note/delete/77154/useless Del: bad code -- https://master.php.net/note/delete/77154/bad+code Del: spam -- https://master.php.net/note/delete/77154/spam Del: non-english -- https://master.php.net/note/delete/77154/non-english Del: in docs -- https://master.php.net/note/delete/77154/in+docs Del: other reasons-- https://master.php.net/note/delete/77154 Reject -- https://master.php.net/note/reject/77154 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129559) next »