Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on: push

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -26,24 +26,25 @@ jobs:
make

- name: Test the extension (PHP 7)
if: matrix.php-versions != '8.0' and matrix.php-versions == '8.1'
if: matrix.php-versions <= '7.4'
run: |
cd extension/
REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_EXECUTABLE=$(which php) $(which php) run-tests.php -d extension=$PWD/modules/meminfo.so

- name: Test the extension (PHP 8)
if: matrix.php-versions == '8.0' or matrix.php-versions == '8.1'
if: matrix.php-versions >= '8.0'
run: |
cd extension/
REPORT_EXIT_STATUS=1 NO_INTERACTION=1 make test

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: failure()
with:
name: ext-tests-output
path: 'extension/tests/*.out'

- name: Test the analyzers
if: matrix.php-versions != '8.4'
run: |
cd analyzer
composer install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ One of the main sources of inspiration for this tool is the Java jmap tool with

Compatibility
-------------
PHP 7.x, 8.0.
PHP 7.x, 8.x.

For older versions of PHP, you can use the following releases:
- 5.6: PHP Meminfo v1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Check that all children items are properly linked through their identifiers
--SKIPIF--
<?php
if (!extension_loaded('json')) die('skip json ext not loaded');
if (PHP_VERSION_ID >= 80200) die('skip PHP8.2+ deprecates dynamic property declaration');
?>
--FILE--

Expand Down