Bug #69500 [Opn->Fbk]: mysqli_real_connect() and persistent connections

From: Date: Wed, 13 Oct 2021 13:16:54 +0000
Subject: Bug #69500 [Opn->Fbk]: mysqli_real_connect() and persistent connections
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237179@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69500&edit=1

 ID:                 69500
 Updated by:         cmb@php.net
 Reported by:        samuele dot diella at gmail dot com
 Summary:            mysqli_real_connect() and persistent connections
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            MySQLi related
 Operating System:   Linux
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Is this still an issue with any of the actively supported PHP
versions[1]?  If so, which SAPI do you use?  And which library do
you use – mysqlnd or libmysql-client?

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2015-04-23 09:11:10] samuele dot diella at gmail dot com

It seems other peoples exeprienced this

https://github.com/facebook/hhvm/issues/3414

look janveldhuis second comment

------------------------------------------------------------------------
[2015-04-21 23:14:07] samuele dot diella at gmail dot com

Description:
------------
when using mysqli_real_connect() prepending "p:" for peristent connections, new ones are
created every time instead of getting them from the pool, according to what is shown by phpinfo on
"Active Persistent" entry.

If i switch the code to use mysqli_connect(), everything works like a charm.

Tested on many php versions (til 5.5.23).



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



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


Thread (4 messages)

« previous php.bugs (#237179) next »