Skip to content

Commit 3b5a789

Browse files
authored
Merge pull request #270 from clue-labs/uv-0.3
Update tests for `ext-uv` on PHP 8+
2 parents 67f4642 + dd4881b commit 3b5a789

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
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

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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy