status of __destruct
| From: | John Huntjens | Date: | Fri, 05 Dec 2003 10:45:11 +0000 |
| Subject: | status of __destruct | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-6226@lists.php.net to get a copy of this message | ||
What the status of destruct, should it work?
I am asking because all the simple provided examples work, but in a more
complex situation __destruct is never called.
Is destruct called on a object when a exit is issued?
for debugging I use this destruct:
function __destruct()
{
touch("/tmp/destruct_app.txt");
}
I am using todays snap (06.30)
Gr,
JOhn