From:             [EMAIL PROTECTED]
Operating system: RedHat 7.2
PHP version:      4.2.3
PHP Bug Type:     Documentation problem
Bug description:  Register_shutdown_function - connection still open while registered 
shutdown...

My problem is that the connection to the browser is still open while the
registered shutdown functions are executing.  The documentation says that
from the registered shutdown functions you WON'T be able to echo or print
or modify the contents of the buffer. I can...

Example:
using apache 1.3.27
php version 4.2.3
//////////////////////////////////////////////
<?
function doThing(){
     for($i=0;$i<100000;$i++){
          //just looping to demonstrate that the page hangs while
executing this function
     }
     echo "PHP documentation says I shouldn't see this in my browser";
}
register_shutdown_function('doThing');

?>
<html>
Test Page.
<br><br>
</html>
////////////////////////////////////////////


I was hoping to register shutdown functions to do some cleanup - without
affecting the load time of the site.  Apparently these functions don't
work that way?
-- 
Edit bug report at http://bugs.php.net/?id=20447&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20447&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20447&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20447&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20447&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20447&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20447&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20447&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20447&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20447&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20447&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20447&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20447&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20447&r=isapi


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to