|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-01 23:54 UTC] tfraser at jeffsys dot net
[2005-02-13 10:15 UTC] ryan at wonko dot com
[2005-03-06 20:30 UTC] sniper@php.net
[2005-03-06 22:42 UTC] helly@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
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