php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69500 mysqli_real_connect() and persistent connections
Submitted: 2015-04-21 23:14 UTC Modified: 2021-10-24 04:22 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 3 (66.7%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: samuele dot diella at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: MySQLi related
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
10 + 5 = ?
Subscribe to this entry?

 
 [2015-04-21 23:14 UTC] 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).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-23 09:11 UTC] samuele dot diella at gmail dot com
It seems other peoples exeprienced this

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

look janveldhuis second comment
 [2021-10-13 13:16 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-10-13 13:16 UTC] cmb@php.net
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>
 [2021-10-24 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 13:01:28 2024 UTC