From:             [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:      4.0.5
PHP Bug Type:     Program Execution
Bug description:  Register_Shutdown_Function doesn't happen after shutdown

In theory (at least IMHO), this function should be used to register
functions to finish up after the client has detached from the server.

This way, time consuming tasks like logging, closing connections, sending
e-mail, or whatever can be done *after* the client is happily surfing to
their next page.

However, I have tested Register_Shutdown_Function as much as I can locally,
and no matter what I try... I have to wait until my shutdown functions are
done before I see the page, get redirected, or whatever.

This is bug or a feature?  Or am I a dummy?

This example should execute and be done... but instead it waits around till the 
shutdown function is finished.  I used sleep cause its a good way to kill time, but it 
happens with any time consuming operation (sending 5 emails through SMTP for example)


print("We're DONE here.");

function KillTime(){

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to