From:             [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.2
PHP version:      4.3.0
PHP Bug Type:     Feature/Change Request
Bug description:  Need a register_shutdown_function() that can send output after a 
timeout

I would like to be able to detect when my scripts timeout and send an
appropriate message to the browser. However it seems that even though
there is a way to detect a script execution timeout in PHP there is no way
to send something to the browser once a script has timed out.

The function register_shutdown_function() seems to be exactly what I need.
In conjunction with connection_status() I can find when a timeout has
occured and act on it.

However register_shutdown_function() will not allow one to send output to
the browser since it is called *after* all output has been sent.

Could someone implement a version of register_shutdown_function() that
would allow for output to be sent to the browser?

PS

I have already asked around and been told it cannot be done *but* If there
is already a way to do what I trying to achieve, please let me know and
sorry but the bogus request.
-- 
Edit bug report at http://bugs.php.net/?id=21508&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21508&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21508&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21508&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21508&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21508&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21508&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21508&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21508&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21508&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21508&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21508&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21508&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21508&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21508&r=gnused

Reply via email to