Skip to content

Commit 2b13c87

Browse files
author
ace411
committedNov 7, 2024·
feat: drop support for PHP8
1 parent 3860321 commit 2b13c87

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed
 

‎.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: ['8.0', '8.1', '8.2', '8.3']
12+
php: ['8.1', '8.2', '8.3']
1313
name: PHP ${{ matrix.php }}
1414
steps:
1515
- uses: actions/checkout@v4

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PHP has, in recent years, seen an emergence of eventware built atop potent multi
88

99
## Requirements
1010

11-
- PHP 8 or newer
11+
- PHP 8.1 or newer
1212
- Linux Kernel 5.4.1 or newer
1313
- [mrloop](https://github.com/markreedz/mrloop)
1414
- [liburing](https://github.com/axboe/liburing)

‎config.m4

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ PHP_ARG_WITH([picohttp],
1818
[no])
1919

2020
if test "$PHP_MRLOOP" != "no"; then
21+
dnl add PHP version check
22+
PHP_VERSION=$($PHP_CONFIG --vernum)
23+
AC_MSG_CHECKING([PHP version])
24+
if test $PHP_VERSION -lt 80100; then
25+
AC_MSG_ERROR([ext-mrloop requires PHP 8.1+])
26+
else
27+
AC_MSG_RESULT([ok])
28+
fi
29+
2130
HEADER_INSTALL_DIRS="/usr/local/lib /usr/lib"
2231
URING_OBJ="liburing.so"
2332

0 commit comments

Comments
 (0)
Please sign in to comment.