|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-03-21 18:55 UTC] evert at rooftopsolutions dot nl
Description: ------------ When an event resource (returned from event_new) is added with event_base_set / event_add, but event_base_loop is called from a different function, the event is never triggered. This is because the event_resource is garbage collected. If I make sure the event stays in some kind of scope (I added it to $GLOBALS for testing) it does work. So this tells me that the reference count is not increased when the event is added with event_base_set. Patchesproposed_fix (last revision 2013-01-31 19:15 UTC by tony2001@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 09:00:01 2025 UTC |
Yes, would be nice to a have a working reproduce script. The one from github doesn't work atm: require('./examples/../vendor/autoload.php): failed to open stream: No such file or directory