|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-22 04:01 UTC] tony at daylessday dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
Description: ------------ Simply moving the ZVAL_TO_EVENT conversion before the base check in the code will fix the issue. Enclosed patch: --- libevent.c.orig 2010-06-22 02:31:54.000000000 +0000 +++ libevent.c 2010-06-22 02:32:12.000000000 +0000 @@ -657,12 +657,13 @@ return; } + ZVAL_TO_EVENT(zevent, event); + if (!event->base) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to delete event without an event base"); RETURN_FALSE; } - ZVAL_TO_EVENT(zevent, event); if (event_del(event->event) == 0) { RETURN_TRUE; } Reproduce code: --------------- Not required, patch included. Expected result: ---------------- Not required, patch included. Actual result: -------------- Not required, patch included.