略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 简介

2024-12-20

简介

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.

注意:

Note, Windows support introduced in event-1.9.0 .

Version 1.0.0 introduces new object-oriented API (breaking backwards compatibility), and 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.

add a noteadd a note

User Contributed Notes 1 note

up
-6
AoK
8 years ago
PHP event service works at PHP 5.4+.  Couldn't get event to work on a PHP 5.3.10 install.

To get event working (OS X as an example):
1. brew install libevent
2. sudo pecl install event

This is tricky because pecl yields both "event" and "libevent" packages.  I was successful with "event" and not "libevent".

官方地址:https://www.php.net/manual/en/intro.event.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3