-
Notifications
You must be signed in to change notification settings - Fork 80
Phar file for v2.7.4 is broken [unexpected T_STRING in Process.php] #151
Comments
…o longer working on 5.3 (keradus) This PR was merged into the 1.11 branch. Discussion ---------- Move phar building to PHP 5.6 job as newest box.phar is no longer working on 5.3 Closes #2134 Build with enforced phar building: https://travis-ci.org/FriendsOfPHP/PHP-CS-Fixer/builds/152762585 As expected (see box-project/box2#151): * 5.3 is not working: https://travis-ci.org/FriendsOfPHP/PHP-CS-Fixer/jobs/152762586#L988 * 5.6 is working: https://travis-ci.org/FriendsOfPHP/PHP-CS-Fixer/jobs/152762604#L848 Commits ------- 07059f9 Move phar building to PHP 5.6 job as newest box.phar is no longer working on 5.3
Also broken on PHP 5.4 AFAICT - https://travis-ci.org/drush-ops/drush/jobs/162482903 |
corrected (never use links to source code lines using branch, use tag or git commit) |
is this project not maintained ? |
Can you guys please give this build a try? I took the suggestion of applying the |
@kherge try how? where's the .phar to test with? |
@glensc Ack, I messed up my last post. I fixed it now, the link should be at the top of my previous post. |
i can confirm the phar works
|
but, why not build the .phar from travis? you can build the .phar from travis and upload it automatically to github release when tag is made: encrypted string is probably securer because it does not "leak" from build logs because it's already public (committed to repository). secure variable may leak if you print out env variables in your build. travis-ci implentation is weird, they should replace secure variables with |
phar file is signed here (at least it was once), not easy to manage private gpg key on travis |
@kherge you can sign it offline (downloading copy) after you have verified contents. i do that practice myself. |
Thank you @kherge @glensc personally i see making an artifact by travis, upload it to gh by travis, then download it, sign it and reuplaod it a little workaround... not needed |
@keradus letting travis make the phar, i see:
why you need to re-upload? the signature is detached. also you need actually invoke box build, --version did not trigger this bug. |
Box project claims to work under PHP 5.3.3
This is not true anymore for v2.7.4 phar file, v2.7.2 phar file is working.
Failing example: https://travis-ci.org/FriendsOfPHP/PHP-CS-Fixer/jobs/152603392#L963
The reason is the way that box phar file was built - it uses too new deps, exactly Symfony v3.x components (in general it allows v2 || v3), which won't run under PHP 5.3.3. I would say that build is done on newer PHP version. It could be avoided by updating component deps before building the box phar with
"platform": {"php": "5.3.3"}
incomposer.json
file (example).Sadly, I cannot help more as phar file is built outside Travis (probably locally by project maintainers).
The text was updated successfully, but these errors were encountered: