#39457 [NEW]: Multiple invoked OO connections never close
| From: | josh at mykoala dot com | Date: | Fri, 10 Nov 2006 12:00:27 +0000 |
| Subject: | #39457 [NEW]: Multiple invoked OO connections never close | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-104741@lists.php.net to get a copy of this message | ||
From: josh at mykoala dot com
Operating system: OS X 10.4.8
PHP version: 5.2.0
PHP Bug Type: MySQLi related
Bug description: Multiple invoked OO connections never close
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 bug report at http://bugs.php.net/?id=39457&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39457&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39457&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39457&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39457&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39457&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39457&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39457&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39457&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39457&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39457&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39457&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39457&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39457&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39457&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39457&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39457&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39457&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39457&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39457&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39457&r=mysqlcfg