#39457 [Opn->Asn]: Multiple invoked OO connections never close
| From: | tony2001@php.net | Date: | Fri, 10 Nov 2006 12:35:47 +0000 |
| Subject: | #39457 [Opn->Asn]: Multiple invoked OO connections never close | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104747@lists.php.net to get a copy of this message | ||
ID: 39457
Updated by: tony2001@php.net
Reported By: josh at mykoala dot com
-Status: Open
+Status: Assigned
Bug Type: MySQLi related
Operating System: OS X 10.4.8
PHP Version: 5.2.0
-Assigned To:
+Assigned To: georg
Previous Comments:
------------------------------------------------------------------------
[2006-11-10 12:00:27] josh at mykoala dot com
Description:
------------
After invoking multiple identical connect() calls to a MySQLi
object (after mysqli_init), only one is closed via close() or
script termination.
Reproduce code:
---------------
# only when invoked through apache
$db = mysqli_init();
$db->connect(null, 'root');
$db->connect(null, 'root');
$db->close();
Expected result:
----------------
Just like when using procedural MySQLi functions (or via
mysql_* funcs), multiple connect() calls will not result in
rogue db connections.
Actual result:
--------------
Checking the MySQL process list after each execution shows a
rogue connection, which goes on until you reach max
connections.
This only happens when using OO style.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39457&edit=1