ID: 46152 Updated by: [EMAIL PROTECTED] Reported By: paszczak at thecamels dot org -Status: Open +Status: Bogus Bug Type: *General Issues PHP Version: 5.2.6 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Destructors are called after request finishes and are meant to handle any cleanup required (ie. closing database connections). This is intended behaviour. Previous Comments: ------------------------------------------------------------------------ [2008-09-22 12:55:02] paszczak at thecamels dot org Description: ------------ Why exit don't stop execute of PHP script? Reproduce code: --------------- class innaklasa { public function __construct() { print "inna klasa<br />"; } public function zrob() { print "inna klasa zrob<br />"; } } class klasa { public function __construct() { print "konstruktor<br />"; } public function __destruct() { print "destruktor<br />"; $innaklasa = new innaklasa; $innaklasa->zrob(); } } $c = new klasa; exit; Expected result: ---------------- konstruktor Actual result: -------------- konstruktor inna klasa inna klasa zrob ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46152&edit=1