Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add older PHP5's since pear/composer allow back to 5.4 #49

Merged
merged 2 commits into from
Mar 16, 2024
Merged
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
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';
Loading