Skip to content

Commit 8c5b85b

Browse files
committed
Mark extensions deprecated and minor docs improvement
1 parent 81d17c1 commit 8c5b85b

File tree

6 files changed

+35
-16
lines changed

6 files changed

+35
-16
lines changed

README.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -362,34 +362,41 @@ See also [`addTimer()`](#addtimer) for more details.
362362

363363
An `ext-event` based event loop.
364364

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

368369
This loop is known to work with PHP 5.4 through PHP 7+.
369370

370371
#### ExtEvLoop
371372

372373
An `ext-ev` based event loop.
373374

374-
This loop uses the [`ev` PECL extension](https://pecl.php.net/package/ev), that
375-
provides an interface to `libev` library.
375+
This loop uses the [`ev` PECL extension](https://pecl.php.net/package/ev),
376+
that provides an interface to `libev` library.
377+
`libev` itself supports a number of system-specific backends (epoll, kqueue).
378+
376379

377380
This loop is known to work with PHP 5.4 through PHP 7+.
378381

379382
#### ExtUvLoop
380383

381384
An `ext-uv` based event loop.
382385

383-
This loop uses the [`uv` PECL extension](https://pecl.php.net/package/uv), that
384-
provides an interface to `libuv` library.
386+
This loop uses the [`uv` PECL extension](https://pecl.php.net/package/uv),
387+
that provides an interface to `libuv` library.
388+
`libuv` itself supports a number of system-specific backends (epoll, kqueue).
385389

386390
This loop is known to work with PHP 7+.
387391

388-
#### ExtLibeventLoop
392+
#### ~~ExtLibeventLoop~~
393+
394+
> Deprecated since v1.2.0, use [`ExtEventLoop`](#exteventloop) instead.
389395
390396
An `ext-libevent` based event loop.
391397

392-
This uses the [`libevent` PECL extension](https://pecl.php.net/package/libevent).
398+
This uses the [`libevent` PECL extension](https://pecl.php.net/package/libevent),
399+
that provides an interface to `libevent` library.
393400
`libevent` itself supports a number of system-specific backends (epoll, kqueue).
394401

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

411-
#### ExtLibevLoop
418+
#### ~~ExtLibevLoop~~
419+
420+
> Deprecated since v1.2.0, use [`ExtEvLoop`](#extevloop) instead.
412421
413422
An `ext-libev` based event loop.
414423

415-
This uses an [unofficial `libev` extension](https://github.com/m4rw3r/php-libev).
416-
It supports the same backends as libevent.
424+
This uses an [unofficial `libev` extension](https://github.com/m4rw3r/php-libev),
425+
that provides an interface to `libev` library.
426+
`libev` itself supports a number of system-specific backends (epoll, kqueue).
417427

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

src/ExtEvLoop.php

Lines changed: 1 addition & 0 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
use SplObjectStorage;
1313

1414
/**
15+
* Deprecated since v1.2.0, use [`ExtEvLoop`](#extevloop) instead.
16+
*
1517
* An `ext-libev` based event loop.
1618
*
17-
* This uses an [unofficial `libev` extension](https://github.com/m4rw3r/php-libev).
18-
* It supports the same backends as libevent.
19+
* This uses an [unofficial `libev` extension](https://github.com/m4rw3r/php-libev),
20+
* that provides an interface to `libev` library.
21+
* `libev` itself supports a number of system-specific backends (epoll, kqueue).
1922
*
2023
* This loop does only work with PHP 5.
2124
* An update for PHP 7 is [unlikely](https://github.com/m4rw3r/php-libev/issues/8)

src/ExtLibeventLoop.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
use SplObjectStorage;
1111

1212
/**
13+
* Deprecated since v1.2.0, use [`ExtEventLoop`](#exteventloop) instead.
14+
*
1315
* An `ext-libevent` based event loop.
1416
*
15-
* This uses the [`libevent` PECL extension](https://pecl.php.net/package/libevent).
17+
* This uses the [`libevent` PECL extension](https://pecl.php.net/package/libevent),
18+
* that provides an interface to `libevent` library.
1619
* `libevent` itself supports a number of system-specific backends (epoll, kqueue).
1720
*
1821
* This event loop does only work with PHP 5.

src/ExtUvLoop.php

Lines changed: 1 addition & 0 deletions
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)