Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd4881b

Browse files
committed
Update tests for ext-uv on PHP 8+
1 parent f1f14b8 commit dd4881b

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/ci.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
strategy:
4949
matrix:
5050
php:
51+
- 8.3
52+
- 8.2
53+
- 8.1
54+
- 8.0
5155
- 7.4
5256
- 7.3
5357
- 7.2
@@ -65,12 +69,12 @@ jobs:
6569
coverage: xdebug
6670
ini-file: development
6771
extensions: sockets, pcntl
68-
- name: Install ext-uv on PHP 7.x
72+
- name: Install ext-uv on PHP 7+
6973
run: |
70-
sudo add-apt-repository ppa:ondrej/php -y && sudo apt-get update -q && sudo apt-get install libuv1-dev
71-
echo "yes" | sudo pecl install uv-0.2.4
72-
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
73-
if: ${{ matrix.php >= 7.0 && matrix.php < 8.0 }}
74+
sudo apt-get update -q && sudo apt-get install libuv1-dev
75+
echo "yes" | sudo pecl install ${{ matrix.php >= 8.0 && 'uv-0.3.0' || 'uv-0.2.4' }}
76+
php -m | grep -q uv || echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
77+
if: ${{ matrix.php >= 7.0 }}
7478
- name: Install legacy ext-libevent on PHP < 7.0
7579
run: |
7680
sudo apt-get update && sudo apt-get install libevent-dev

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ This loop uses the [`uv` PECL extension](https://pecl.php.net/package/uv),
419419
that provides an interface to `libuv` library.
420420
`libuv` itself supports a number of system-specific backends (epoll, kqueue).
421421

422-
This loop is known to work with PHP 7.x.
422+
This loop is known to work with PHP 7+.
423423

424424
#### ~~ExtLibeventLoop~~
425425

src/ExtUvLoop.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* that provides an interface to `libuv` library.
1414
* `libuv` itself supports a number of system-specific backends (epoll, kqueue).
1515
*
16-
* This loop is known to work with PHP 7.x.
16+
* This loop is known to work with PHP 7+.
1717
*
1818
* @see https://github.com/bwoebi/php-uv
1919
*/

0 commit comments

Comments
 (0)