Skip to content

Commit af9b699

Browse files
committed
Test with php 8.2 and 8.3
1 parent 0ab7f5a commit af9b699

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on: push
44

55
jobs:
66
build:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-24.04
88
strategy:
99
matrix:
10-
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
10+
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- name: Setup PHP
1616
uses: shivammathur/setup-php@v2
@@ -26,24 +26,25 @@ jobs:
2626
make
2727
2828
- name: Test the extension (PHP 7)
29-
if: matrix.php-versions != '8.0' and matrix.php-versions == '8.1'
29+
if: matrix.php-versions <= '7.4'
3030
run: |
3131
cd extension/
3232
REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_EXECUTABLE=$(which php) $(which php) run-tests.php -d extension=$PWD/modules/meminfo.so
3333
3434
- name: Test the extension (PHP 8)
35-
if: matrix.php-versions == '8.0' or matrix.php-versions == '8.1'
35+
if: matrix.php-versions >= '8.0'
3636
run: |
3737
cd extension/
3838
REPORT_EXIT_STATUS=1 NO_INTERACTION=1 make test
3939
40-
- uses: actions/upload-artifact@v2
40+
- uses: actions/upload-artifact@v4
4141
if: failure()
4242
with:
4343
name: ext-tests-output
4444
path: 'extension/tests/*.out'
4545

4646
- name: Test the analyzers
47+
if: matrix.php-versions != '8.4'
4748
run: |
4849
cd analyzer
4950
composer install

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ One of the main sources of inspiration for this tool is the Java jmap tool with
1010

1111
Compatibility
1212
-------------
13-
PHP 7.x, 8.0.
13+
PHP 7.x, 8.x.
1414

1515
For older versions of PHP, you can use the following releases:
1616
- 5.6: PHP Meminfo v1.1

extension/tests/bug-github-76_children_items_not_linked_php7.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Check that all children items are properly linked through their identifiers
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('json')) die('skip json ext not loaded');
6+
if (PHP_VERSION_ID >= 80200) die('skip PHP8.2+ deprecates dynamic property declaration');
67
?>
78
--FILE--
89

0 commit comments

Comments
 (0)