From: cyberlot at cyberlot dot net
Operating system: Fedora Core 2
PHP version: 5.0.0RC3
PHP Bug Type: MySQL related
Bug description: Database not closing
Description:
------------
mysqli, using class interface not not closing connection at end of script
unless you specificly call $mysqli->close
This is a change of behavior from the normal mysql extension which does
not "require" you to close connection.
Reproduce code:
---------------
<?
$mysqli = new extend_mysqli('localhost','billing','billing','billing');
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
?>
Expected result:
----------------
Every time its run it should release the database connection
Actual result:
--------------
Each time you run it a new db connection is done until you max out the
mysql server.
--
Edit bug report at http://bugs.php.net/?id=29019&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29019&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29019&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29019&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29019&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29019&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29019&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29019&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29019&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29019&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29019&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29019&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29019&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29019&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29019&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29019&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29019&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29019&r=float