Skip to content

Commit

Permalink
Merge pull request #270 from clue-labs/uv-0.3
Browse files Browse the repository at this point in the history
Update tests for `ext-uv` on PHP 8+
  • Loading branch information
WyriHaximus committed Oct 28, 2023
2 parents 67f4642 + dd4881b commit 3b5a789
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
strategy:
matrix:
php:
- 8.3
- 8.2
- 8.1
- 8.0
- 7.4
- 7.3
- 7.2
Expand All @@ -65,12 +69,12 @@ jobs:
coverage: xdebug
ini-file: development
extensions: sockets, pcntl
- name: Install ext-uv on PHP 7.x
- name: Install ext-uv on PHP 7+
run: |
sudo add-apt-repository ppa:ondrej/php -y && sudo apt-get update -q && sudo apt-get install libuv1-dev
echo "yes" | sudo pecl install uv-0.2.4
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
if: ${{ matrix.php >= 7.0 && matrix.php < 8.0 }}
sudo apt-get update -q && sudo apt-get install libuv1-dev
echo "yes" | sudo pecl install ${{ matrix.php >= 8.0 && 'uv-0.3.0' || 'uv-0.2.4' }}
php -m | grep -q uv || echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
if: ${{ matrix.php >= 7.0 }}
- name: Install legacy ext-libevent on PHP < 7.0
run: |
sudo apt-get update && sudo apt-get install libevent-dev
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ This loop uses the [`uv` PECL extension](https://pecl.php.net/package/uv),
that provides an interface to `libuv` library.
`libuv` itself supports a number of system-specific backends (epoll, kqueue).

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

#### ~~ExtLibeventLoop~~

Expand Down
2 changes: 1 addition & 1 deletion src/ExtUvLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* that provides an interface to `libuv` library.
* `libuv` itself supports a number of system-specific backends (epoll, kqueue).
*
* This loop is known to work with PHP 7.x.
* This loop is known to work with PHP 7+.
*
* @see https://github.com/bwoebi/php-uv
*/
Expand Down

0 comments on commit 3b5a789

Please sign in to comment.