event

Provides interface to libevent library


This is an extension to efficiently schedule I/O, time and signal based
events using the best I/O notification mechanism available for specific platform.
This is a port of libevent to the PHP infrastructure.

Version 1.0.0 introduces:
* new OO API breaking backwards compatibility
* support of libevent 2+ including HTTP, DNS, OpenSSL and the event listener.

Note, event-1.0.0 and greater is not compatible with previous versions.

License: PHP

Latest releases

Version Release Download
3.1.3 2024-01-27 event-3.1.3.tgz
3.1.2 2024-01-24 event-3.1.2.tgz
3.1.1 2023-12-29 event-3.1.1.tgz
3.1.0 2023-12-26 event-3.1.0.tgz
3.1.0RC1 2023-10-14 event-3.1.0RC1.tgz
Show all releases

Changelog

Version Message
3.1.3 EventDnsBase::__construct() now throws a TypeError if the type of the $initialize argument is anything other than int or bool.
3.1.2 Fixed an issue in EventDnsBase::__construct() where it failed to accept the init flag set to true when using libevent version < 2.1.0.
3.1.1 Fixed build in RHEL 7 and 8 (thanks to Remi Collet).
3.1.0 Stable version based on 3.1.0RC1. Refer to release notes of 3.1.0RC1 for details.
3.1.0RC1 - The loop will now be stopped if an event callback throws an exception.
This prevents user from losing control on the event loop.
- EventDnsBase::__construct() now accepts bool|int as its second parameter:
* false and true have the same meaning as before;
* EventDnsBase::DISABLE_WHEN_INACTIVE - Do not prevent the libevent event loop from exiting when we have no active DNS requests.
* EventDnsBase::INITIALIZE_NAMESERVERS - Process resolv.conf.
* EventDnsBase::NAMESERVERS_NO_DEFAULT - Do not add default nameserver if there are no nameservers in resolv.conf.
- Internally, a safer strlcpy() will be used instead of strcpy().
- Fixed a segmentation fault that might occur in the EventHttpRequest callback.
- Fixed a bug where the EventBuffer::copyout method didn't populate the output variable properly in PHP >= 8.2 (thanks to Joseph Tseng).
Show complete changelog