Skip to content

Commit fb59661

Browse files
committed
Support PHP 8
1 parent 0322d2c commit fb59661

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
php:
14+
- 8.0
1415
- 7.4
1516
- 7.3
1617
- 7.2
@@ -27,24 +28,24 @@ jobs:
2728
php-version: ${{ matrix.php }}
2829
coverage: xdebug
2930
- run: sudo apt-get update && sudo apt-get install libevent-dev
30-
- name: Install ext-event on PHP >= 5.4
31+
- name: Install ext-event between PHP 5.4 and PHP 7.x
3132
run: |
3233
echo "yes" | sudo pecl install event
3334
# explicitly enable extensions in php.ini on PHP 5.6+
3435
php -r 'exit((int)(PHP_VERSION_ID >= 50600));' || echo "extension=event.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
35-
if: ${{ matrix.php >= 5.4 }}
36+
if: ${{ matrix.php >= 5.4 && matrix.php < 8.0 }}
3637
- name: Install ext-ev on PHP >= 5.4
3738
run: |
3839
echo "yes" | sudo pecl install ev
3940
# explicitly enable extensions in php.ini on PHP 5.6+
4041
php -r 'exit((int)(PHP_VERSION_ID >= 50600));' || echo "extension=ev.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
4142
if: ${{ matrix.php >= 5.4 }}
42-
- name: Install ext-uv on PHP >= 7.0
43+
- name: Install ext-uv on PHP 7.x
4344
run: |
4445
sudo add-apt-repository ppa:ondrej/php -y && sudo apt-get update -q && sudo apt-get install libuv1-dev
4546
echo "yes" | sudo pecl install uv-beta
4647
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
47-
if: ${{ matrix.php >= 7.0 }}
48+
if: ${{ matrix.php >= 7.0 && matrix.php < 8.0 }}
4849
- name: Install legacy ext-libevent on PHP < 7.0
4950
run: |
5051
curl http://pecl.php.net/get/libevent-0.1.0.tgz | tar -xz
@@ -80,6 +81,7 @@ jobs:
8081
strategy:
8182
matrix:
8283
php:
84+
- 8.0
8385
- 7.4
8486
- 7.3
8587
- 7.2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ $ composer require react/event-loop:^1.1.1
702702
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
703703

704704
This project aims to run on any platform and thus does not require any PHP
705-
extensions and supports running on legacy PHP 5.3 through current PHP 7+ and
705+
extensions and supports running on legacy PHP 5.3 through current PHP 8+ and
706706
HHVM.
707707
It's *highly recommended to use PHP 7+* for this project.
708708

0 commit comments

Comments
 (0)