|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-24 13:57 UTC] jani@php.net
-Status: Open
+Status: Bogus
-Package: Feature/Change Request
+Package: *General Issues
[2010-11-24 13:57 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
<?php register_shutdown_function("shutdown"); print("Hi There! 1<br>"); flush(); sleep(1); print("Hi There! 2<br>"); flush(); exit(); function shutdown() { print("Hi There! 3<br>"); sleep(10); } ?> - The last "Hi There! 3<br>" shouldn't appear on the client browser, but it does! - Response to client browser takes > 10 seconds! - The script response to the client browser should be sent at the normal exit point. The shutdown funcion should be quietly executed after the client browser got his complete response. - Being able to send response before the script completely ends can be very useful for speeding up client response times for some applications. Hope you take these comments in consideration... (though I understand maybe there are some limitations on the apache architecture that prevent this from working- I don't know)