php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7041 mysql_pconnect is making new connection ?
Submitted: 2000-10-05 15:28 UTC Modified: 2001-02-10 15:41 UTC
From: yunarta at yahoo dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0.16 OS: Win2k and BSDI 4.1
Private report: No CVE-ID: None
 [2000-10-05 15:28 UTC] yunarta at yahoo dot com
I'm using Win2k for first try, then also at BSDI 4.1,
When i'm calling mysql_pconnect, it makes a new connection.
On phpinfo(), its said i have 1 persistent connection,
while on mysql console, after i'm issuing "show processlist",
the connection doesn't exist. Its like when you issuing
mysql_connect for connection to mysql.

So i'm calling mysql_pconnect and issuing "show processlist"
at mysql_query.. after i put all the process id, i found out
that each pconnect is creating a new connection like what 
happens in mysql_connect

Bug ?

Notes: 
-it doesn't happens on PHP 4
-I'm using MySql 3.22.32
-I having similar problem too same as MySQL Bug id #3852, where 
 pconnect overloads mysql
-You can get the source code from http://202.157.137.129/sql.zip

Thank you

Yunarta Kartawahyudi

Patches

Pull Requests

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 29 06:00:03 2025 UTC