-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Hotfix] Fix Phar building #70
[Hotfix] Fix Phar building #70
Conversation
2330dc0
to
327a273
Compare
Argh... there is nothing in this PR which could cause the failures on PHP 5.3 - 5.5, so I just did a test (re)build of I've gone through everything in the script to try and figure out what is causing it, but so far haven't found the cause yet.
|
@grogy Bump... |
FYI: I will rebase this PR once PR #71 has been merged. |
Box 2 is no longer maintained and will not be made compatible with more recent PHP versions. Refs: * https://github.com/box-project/box/blob/master/UPGRADE.md#from-27-to-30 * https://github.com/box-project/box/blob/master/doc/configuration.md
For the time being, until box-project/box#567 has been fixed: 1. Disable the addition of the requirement checker from Box as the version included in the last release of Box is not compatible with PHP 8.1. 2. Change the PHP version used to generate the Phar to PHP 8.0 to get round the problem the PHP compactor has with attributes. Note: the generated Phar file should still be compatible with all supported PHP versions.
327a273
to
daf0dfa
Compare
Rebased now #71 has been merged. |
Thank you, I tried created PHAR with 7.4 server and works ok |
The Phar is also being tested against all supported PHP versions in the |
The box project has released Box 4.0.0 (and 4.0.1). Most notable changes: * New minimum PHP version of PHP 8.1. * The sodium extension has become a requirement. * The requirements checker now has a minimum PHP version of PHP 7.2.4. We already disabled the requirements checker previously due to PHP 8.1 incompatibilities (PR #70), I've not added a comment to document not to turn it on again as that would make the Parallel Lint PHAR incompatible with PHP < 7.2. Refs: https://github.com/box-project/box/releases/tag/4.0.0
The box project has released Box 4.0.0 (and 4.0.1). Most notable changes: * New minimum PHP version of PHP 8.1. * The sodium extension has become a requirement. * The requirements checker now has a minimum PHP version of PHP 7.2.4. We already disabled the requirements checker previously due to PHP 8.1 incompatibilities (PR #70), I've not added a comment to document not to turn it on again as that would make the Parallel Lint PHAR incompatible with PHP < 7.2. Refs: https://github.com/box-project/box/releases/tag/4.0.0
The box project has released Box 4.0.0 (and 4.0.1). Most notable changes: * New minimum PHP version of PHP 8.1. * The sodium extension has become a requirement. * The requirements checker now has a minimum PHP version of PHP 7.2.4. We already disabled the requirements checker previously due to PHP 8.1 incompatibilities (PR #70), I've not added a comment to document not to turn it on again as that would make the Parallel Lint PHAR incompatible with PHP < 7.2. Refs: https://github.com/box-project/box/releases/tag/4.0.0
The box project has released Box 4.0.0 (and 4.0.1). Most notable changes: * New minimum PHP version of PHP 8.1. * The sodium extension has become a requirement. * The requirements checker now has a minimum PHP version of PHP 7.2.4. We already disabled the requirements checker previously due to PHP 8.1 incompatibilities (PR #70), I've not added a comment to document not to turn it on again as that would make the Parallel Lint PHAR incompatible with PHP < 7.2. Refs: https://github.com/box-project/box/releases/tag/4.0.0
Upgrade to Box 3 for Phar generation
Box 2 is no longer maintained and will not be made compatible with more recent PHP versions.
Refs:
PHP 8.1: fix Phar building
For the time being, until box-project/box#567 has been fixed:
Note: the generated Phar file should still be compatible with all supported PHP versions.
Fixes #69
Closes #39
Closes #36
@grogy A release with a Phar generated after this fix has been merged would be appreciated as anyone currently using this tool to lint their files against PHP 8.1 (in CI or otherwise) is affected by this issue.