Req #8395 [Opn->Bgs]: register_shutdown_function() error
| From: | jani@php.net | Date: | Wed, 24 Nov 2010 12:57:39 +0000 |
| Subject: | Req #8395 [Opn->Bgs]: register_shutdown_function() error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156380@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=8395&edit=1
ID: 8395
Updated by: jani@php.net
Reported by: osp at tinet dot org
Summary: register_shutdown_function() error
-Status: Open
+Status: Bogus
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Linux
PHP Version: 4.0.3pl1
Block user comment: N
Private report: N
New Comment:
This is intentional and will not change.
Previous Comments:
------------------------------------------------------------------------
[2000-12-23 23:56:14] osp at tinet dot org
<?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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=8395&edit=1