|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-16 10:26 UTC] jille at hexon dot cx
[2011-05-17 15:04 UTC] tony at daylessday dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 07:00:01 2025 UTC |
Description: ------------ event_set() resets which base the event belongs to. The extension does not register that and libevent will segfault. Reproduce code: --------------- <?php $ev = event_new(); event_set($ev, udp_getSocket(), EV_READ, function() { }); $base = event_base_new(); event_base_set($ev, $base); event_set($ev, udp_getSocket(), EV_READ | EV_WRITE, function() { }); event_add($ev); ?> Actual result: -------------- Segmentation fault in event_add().