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: -
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:
Status: Open Package: MySQLi related
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 15 10:01:25 2019 UTC