|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-11 20:08 UTC] e at osterman dot com
[2013-07-16 06:17 UTC] osmanov@php.net
-Status: Open
+Status: Wont fix
[2013-07-16 06:17 UTC] osmanov@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
Description: ------------ If the priority queue of scheduled events is empty, the dispatch loop should terminate successfully. This bug might be related to the fact that event_have_events returns true even if there are no events. Reproduce code: --------------- <?php dl('event.so'); event_init(); // called when user hits ^C function stop($sig) { global $s; echo "You got signal $sig. Descheduling event.\n"; event_deschedule($s); } $s = event_handle_signal(2, 'stop'); event_schedule($s); echo "Going into dispatch loop: at t= " . time() . "\n"; event_dispatch(); echo "all done\n"; ?> Expected result: ---------------- all done program exits. Actual result: -------------- program remains stuck in the dispatch loop. "all done" is never reached.