Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Check that the system has the PHP version required by Symfony #257

Closed
wants to merge 19 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes #239.

@xabbuh
Copy link
Member

xabbuh commented Jun 6, 2016

You will now have to skip some tests when on PHP 5.4.

@javiereguiluz
Copy link
Member Author

@xabbuh yes. I did that in a80196a ... but there are other failing tests which I can't fix. I'll try to fix them tomorrow.

@javiereguiluz
Copy link
Member Author

This is now ready for the final review. Thanks!

*/
public function testSymfonyRequiresNewerPhpVersion()
{
if (version_compare(phpversion(), '5.5.0', '>=')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP_VERSION_ID >= 55000

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks.

@xabbuh
Copy link
Member

xabbuh commented Jun 13, 2016

Should we make it possible to skip the version check to be able to bootstrap a project even on a system that isn't fully ready to run the application itself?

@javiereguiluz
Copy link
Member Author

@xabbuh I'd prefer to keep failing if your system is not ready to run the Symfony version you want to install.

@javiereguiluz
Copy link
Member Author

I think this needs more work. If you don't pass any version, you are using latest, which bypasses this new check, although it also requires 5.5.9.

@javiereguiluz
Copy link
Member Author

This is now ready for a new review. I changed everything about how we decide if a version is installable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No warning/error given when installing Symfony 3.0 with PHP 5.4
2 participants