ID: 28840
Comment by: tfraser at jeffsys dot net
Reported By: rodolfo at rodsoft dot org
Status: Open
Bug Type: Zend Engine 2 problem
Operating System: linux 2.6.7
PHP Version: 5.0.0RC3
New Comment:
As of 5.0.2, the same problem occurs.
Previous Comments:
------------------------------------------------------------------------
[2004-06-19 02:22:55] rodolfo at rodsoft dot org
Description:
------------
When you create a class by extending mysqli or mysqli_result and add a
destructor to it (to automatically call mysqli::close, for instance),
it doesn't get called when the object gets out of scope.
Reproduce code:
---------------
<?
class test extends mysqli
{
function __construct() { echo "born\n"; }
function __destruct() { echo "died\n"; }
}
$test = new test;
unset($test);
?>
Expected result:
----------------
born
died
Actual result:
--------------
born
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28840&edit=1