note 50433 deleted from function.exit by nlopess
| From: | nlopess@php.net | Date: | Mon, 28 Feb 2005 16:36:47 +0000 |
| Subject: | note 50433 deleted from function.exit by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85669@lists.php.net to get a copy of this message | ||
Note Submitter: kang at respice dot de
----
I noticed, that exit () and die () really do not cause an instant end of the script.
The following script:
<?php
class Test
{
function __destruct ()
{
die ('AGAIN');
}
}
$Test = new Test;
die ('DIE');
?>
will display DIEAGAIN