it seems that php first ends output buffering and then calls then destructs the objects. so the output buffering is still ended when the destructor is calles. one has to unset the object to reverse that order manually.If I remember correctly, there were a number of posts about this subject on the internals list before PHP5 came out. I seem to recall that the gist of it was that destructors are called *after* the script terminates. Someone mentioned that output from destructors (echo, print, etc) may not be passed to the browser at all due to the connection having (possibly) been closed.
aRZed
I haven't searched through the archives to refresh my memory, but it's something to bear in mind. I wonder whether error messages are also not passed to the browser...
Cheers
Chris
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php