[PHP] Failing to write to a file when a class is being implicitly destroyed

2006-03-31 Thread John Wells
I hope I can explain my problem/questions clearly. Thanks in advance: Scenario: I'm working on a Log class that my app will use to write debug/error/etc messages to a file. I've created it so that as the application logs messages, these messages are queued within a property of the

Re: [PHP] Failing to write to a file when a class is being implicitly destroyed

2006-03-31 Thread Jochem Maas
basically when php shutsdown at some stage stuff like file manipulation, db access will have been torn down - the implicit object destruction (and therefore the call to __destruct() happens to late in the shutdown process to be of any use ... there is a big chicken and egg problem there (search