|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-16 00:48 UTC] buasuwan at se-ed dot net
when client disconnected or hit 'Stop' button. 1.these 2 functions alway return 0; connection_status(); connection_aborted(); 2.and alway ignore 'STOP' button when ignore_user_abort(true); or ignore_user_abort(false); PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 19:00:01 2025 UTC |
This bug is trivially reproduceable with the following code fragment: while (1) { sleep(3); $status = connection_status(); syslog(1, "connection status is $status"); $status = connection_aborted(); syslog(1, "connection aborted is $status"); } It happens consistently using php4.1.2 compiled under OpenBSD 2.8. If you watch the error log, the connection_status() always returns 0, whether or not the stop button has been pressed. Similarly, connection_aborted() always returns 0.