Edit report at https://bugs.php.net/bug.php?id=63072&edit=1
ID: 63072
Updated by: laruence@php.net
Reported by: zdexter_cds at hotmail dot com
Summary: Request: function as register_shutdown_function, but
as it was before PHP 4.1.0
Status: Open
Type: Feature/Change Request
Package: Unknown/Other Function
Operating System: Anyone
PHP Version: 5.4.6
Block user comment: N
Private report: N
New Comment:
1. you can flush you output as soon as possible, then run other functions
2. you can using ajax
3. fpm has that ability: fastcgi_finish_request()
but such function will be very limited, like it can not output anything.
Previous Comments:
------------------------------------------------------------------------
[2012-09-12 15:08:28] zdexter_cds at hotmail dot com
Edit: bug type changed.
------------------------------------------------------------------------
[2012-09-12 15:04:40] zdexter_cds at hotmail dot com
Description:
------------
I'm asking for a function as register_shutdown_function used to be, when it
executed after client disconnects.
Reason: Get faster responses to the user when some considerably 'slow' process
might be executed in background, after processes.
I know it could be done by some custom function, as well as it's possible
through Output Control Buffers Functions, but it's more code to write, more
commands to be processed by server and it'd 'conflict' with output_buffering
setting from php.ini so you'd also need to manage it.
Also, the current function could be simulated easier than the old one, but it's
the one chosen.
It can easily be done by you, as it's just copy & paste, so I hope it's
implemented.
Thanks in advance.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63072&edit=1