event

pecl install 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.

Maintainer

  • Ruslan Osmanov (lead )
  • Anatoliy Belsky (developer )
  • Remi Collet (contributor )

Details

Downloads: 1530761
3.1.0RC1
1 year ago
Request a build
Request to the website owner's team the built this extension with this parameters. The result is not guaranteed and can be impossible for many reasons. The extension source code is frequently not upto date with the most recent PHP version.
If you have another code source for this extension, provide it in comment.
Please (or register) to request a build.
Version 3.1.0RC1 change log


- 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).

requires:

  • php >=5.4.0
  • pearinstaller >=1.4.0a1