ID: 19480 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Linux 2.4.6 PHP Version: 4CVS-2002-09-18 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Unable to replicate on latest CVS w/ Apache 1.3.26. Previous Comments: ------------------------------------------------------------------------ [2002-09-18 14:48:41] [EMAIL PROTECTED] Take this script: <? function aborted() { global $i; mail('[EMAIL PROTECTED]', 'aborted', 'conn_status: ' . (int)connection_status() . "\nI counted to $i" ); exit; } # register_shutdown_function('aborted'); $i = 0; while (true) { echo $i++ . "\n"; flush(); } ?> If run as is, it works as expected: happily counting away until it times out, or you abort the script. If you uncomment the register_shutdown_function line and abort the script part-way through, Apache doesn't seem to close the connection. And, in fact, all other Apache processes get "hung" up waiting for it. Running <i>apachectl server-status</i> shows this. Let me know if you need more info. (This was actually tested on 4.3.0-dev, built Aug 27 2002. I'm getting the current CVS version now, but I understand from other people that this will still not function.) - Colin ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19480&edit=1
