Skip to content

Commit e3287d6

Browse files
authored
Merge pull request #234 from SimonFrings/readme
2 parents 3441b26 + 181941f commit e3287d6

File tree

6 files changed

+37
-20
lines changed

6 files changed

+37
-20
lines changed

README.md

+23-13
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ single [`run()`](#run) call that is controlled by the user.
2222
* [Loop implementations](#loop-implementations)
2323
* [StreamSelectLoop](#streamselectloop)
2424
* [ExtEventLoop](#exteventloop)
25-
* [ExtLibeventLoop](#extlibeventloop)
26-
* [ExtLibevLoop](#extlibevloop)
25+
* [~~ExtLibeventLoop~~](#extlibeventloop)
26+
* [~~ExtLibevLoop~~](#extlibevloop)
2727
* [ExtEvLoop](#extevloop)
2828
* [ExtUvLoop](#extuvloop)
2929
* [LoopInterface](#loopinterface)
@@ -392,34 +392,41 @@ See also [`addTimer()`](#addtimer) for more details.
392392

393393
An `ext-event` based event loop.
394394

395-
This uses the [`event` PECL extension](https://pecl.php.net/package/event).
396-
It supports the same backends as libevent.
395+
This uses the [`event` PECL extension](https://pecl.php.net/package/event),
396+
that provides an interface to `libevent` library.
397+
`libevent` itself supports a number of system-specific backends (epoll, kqueue).
397398

398399
This loop is known to work with PHP 5.4 through PHP 7+.
399400

400401
#### ExtEvLoop
401402

402403
An `ext-ev` based event loop.
403404

404-
This loop uses the [`ev` PECL extension](https://pecl.php.net/package/ev), that
405-
provides an interface to `libev` library.
405+
This loop uses the [`ev` PECL extension](https://pecl.php.net/package/ev),
406+
that provides an interface to `libev` library.
407+
`libev` itself supports a number of system-specific backends (epoll, kqueue).
408+
406409

407410
This loop is known to work with PHP 5.4 through PHP 7+.
408411

409412
#### ExtUvLoop
410413

411414
An `ext-uv` based event loop.
412415

413-
This loop uses the [`uv` PECL extension](https://pecl.php.net/package/uv), that
414-
provides an interface to `libuv` library.
416+
This loop uses the [`uv` PECL extension](https://pecl.php.net/package/uv),
417+
that provides an interface to `libuv` library.
418+
`libuv` itself supports a number of system-specific backends (epoll, kqueue).
415419

416420
This loop is known to work with PHP 7+.
417421

418-
#### ExtLibeventLoop
422+
#### ~~ExtLibeventLoop~~
423+
424+
> Deprecated since v1.2.0, use [`ExtEventLoop`](#exteventloop) instead.
419425
420426
An `ext-libevent` based event loop.
421427

422-
This uses the [`libevent` PECL extension](https://pecl.php.net/package/libevent).
428+
This uses the [`libevent` PECL extension](https://pecl.php.net/package/libevent),
429+
that provides an interface to `libevent` library.
423430
`libevent` itself supports a number of system-specific backends (epoll, kqueue).
424431

425432
This event loop does only work with PHP 5.
@@ -438,12 +445,15 @@ As such, it's recommended to use `stream_set_read_buffer($stream, 0);`
438445
to disable PHP's internal read buffer in this case.
439446
See also [`addReadStream()`](#addreadstream) for more details.
440447

441-
#### ExtLibevLoop
448+
#### ~~ExtLibevLoop~~
449+
450+
> Deprecated since v1.2.0, use [`ExtEvLoop`](#extevloop) instead.
442451
443452
An `ext-libev` based event loop.
444453

445-
This uses an [unofficial `libev` extension](https://github.com/m4rw3r/php-libev).
446-
It supports the same backends as libevent.
454+
This uses an [unofficial `libev` extension](https://github.com/m4rw3r/php-libev),
455+
that provides an interface to `libev` library.
456+
`libev` itself supports a number of system-specific backends (epoll, kqueue).
447457

448458
This loop does only work with PHP 5.
449459
An update for PHP 7 is [unlikely](https://github.com/m4rw3r/php-libev/issues/8)

src/ExtEvLoop.php

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*
1515
* This loop uses the [`ev` PECL extension](https://pecl.php.net/package/ev),
1616
* that provides an interface to `libev` library.
17+
* `libev` itself supports a number of system-specific backends (epoll, kqueue).
1718
*
1819
* This loop is known to work with PHP 5.4 through PHP 7+.
1920
*

src/ExtEventLoop.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
/**
1313
* An `ext-event` based event loop.
1414
*
15-
* This uses the [`event` PECL extension](https://pecl.php.net/package/event).
16-
* It supports the same backends as libevent.
15+
* This uses the [`event` PECL extension](https://pecl.php.net/package/event),
16+
* that provides an interface to `libevent` library.
17+
* `libevent` itself supports a number of system-specific backends (epoll, kqueue).
1718
*
1819
* This loop is known to work with PHP 5.4 through PHP 7+.
1920
*

src/ExtLibevLoop.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@
1212
use SplObjectStorage;
1313

1414
/**
15-
* An `ext-libev` based event loop.
15+
* [Deprecated] An `ext-libev` based event loop.
1616
*
17-
* This uses an [unofficial `libev` extension](https://github.com/m4rw3r/php-libev).
18-
* It supports the same backends as libevent.
17+
* This uses an [unofficial `libev` extension](https://github.com/m4rw3r/php-libev),
18+
* that provides an interface to `libev` library.
19+
* `libev` itself supports a number of system-specific backends (epoll, kqueue).
1920
*
2021
* This loop does only work with PHP 5.
2122
* An update for PHP 7 is [unlikely](https://github.com/m4rw3r/php-libev/issues/8)
2223
* to happen any time soon.
2324
*
2425
* @see https://github.com/m4rw3r/php-libev
2526
* @see https://gist.github.com/1688204
27+
* @deprecated 1.2.0, use [`ExtEvLoop`](#extevloop) instead.
2628
*/
2729
final class ExtLibevLoop implements LoopInterface
2830
{

src/ExtLibeventLoop.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
use SplObjectStorage;
1111

1212
/**
13-
* An `ext-libevent` based event loop.
13+
* [Deprecated] An `ext-libevent` based event loop.
1414
*
15-
* This uses the [`libevent` PECL extension](https://pecl.php.net/package/libevent).
15+
* This uses the [`libevent` PECL extension](https://pecl.php.net/package/libevent),
16+
* that provides an interface to `libevent` library.
1617
* `libevent` itself supports a number of system-specific backends (epoll, kqueue).
1718
*
1819
* This event loop does only work with PHP 5.
@@ -32,6 +33,7 @@
3233
* See also [`addReadStream()`](#addreadstream) for more details.
3334
*
3435
* @link https://pecl.php.net/package/libevent
36+
* @deprecated 1.2.0, use [`ExtEventLoop`](#exteventloop) instead.
3537
*/
3638
final class ExtLibeventLoop implements LoopInterface
3739
{

src/ExtUvLoop.php

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*
1212
* This loop uses the [`uv` PECL extension](https://pecl.php.net/package/uv),
1313
* that provides an interface to `libuv` library.
14+
* `libuv` itself supports a number of system-specific backends (epoll, kqueue).
1415
*
1516
* This loop is known to work with PHP 7+.
1617
*

0 commit comments

Comments
 (0)