Skip to content

Commit

Permalink
Merge pull request #49 from ashnazg/master
Browse files Browse the repository at this point in the history
add older PHP5's since pear/composer allow back to 5.4
  • Loading branch information
ashnazg authored Mar 16, 2024
2 parents b439c85 + 5a6b714 commit 4a67cbc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
dependencies: [ 'locked' ]

name: PHP ${{ matrix.php }} on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies
Expand All @@ -31,7 +31,9 @@ jobs:

- name: Install PEAR
run: |
sudo apt-get --fix-broken install
sudo apt-get install php-pear
pear list
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"require": {
"php": ">=5.2.0",
"php": ">=5.4.0",
"pear/pear-core-minimal": "^1.10.0alpha2"
},
"suggest": {
Expand Down
4 changes: 2 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ Also Lzma2 compressed archives are supported with xz extension.</description>
<dependencies>
<required>
<php>
<min>5.2.0</min>
<min>5.4.0</min>
</php>
<pearinstaller>
<min>1.9.0</min>
<min>1.10.0</min>
</pearinstaller>
</required>
</dependencies>
Expand Down
2 changes: 2 additions & 0 deletions tests/setup.php.inc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
error_reporting(E_ALL);
// adjust include_path for PHP pre-5.6 behavior
set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/local/php/' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '/share/pear');
require_once dirname(__FILE__) . '/phpt_test.php.inc';
$phpunit = new PEAR_PHPTest(true);
require_once dirname(dirname(__FILE__)) . '/Archive/Tar.php';

0 comments on commit 4a67cbc

Please sign in to comment.