stecman / symfony-console-completion

Automatic tab-key completion for Symfony console application options, arguments and parameters
MIT License
420 stars 26 forks source link

Indicate minimal supported PHP version #21

Closed aik099 closed 9 years ago

aik099 commented 9 years ago

I see, that tests on Travis CI are running on PHP 5.4 and PHP 5.5. There is no indication of minimal required version in the composer.json file.

My question is: the PHP 5.3 is supported?

In the src folder I haven't found any PHP 5.4 specific code, but in tests folder I've found short array syntax usage, that will make tests fail on PHP 5.3.

pjcdawkins commented 9 years ago

Composer requires 5.3.3.

If you want to make 5.4 a hard requirement, please bump the major version number to 1 to comply with semver (I'm using this in a project whose documentation indicates the minimum PHP version as 5.3.3)

aik099 commented 9 years ago

I'm also for keeping PHP 5.3 compatibility.

duncan3dc commented 9 years ago

5.3 should be dropped as it's EOL.

Making 5.4 the minimum does not require a major version bump in semver. And even if it did it wouldn't apply in this case as this software is still version 0.* which means breaking changes can happen anywhere on the way to 1.0.0

aik099 commented 9 years ago

If a specific PHP version isn't supported doesn't mean that it's bad version. It works and if hosting using it is happy, then why we need to upgrade.

Fact that various libraries bump their PHP requirement just to force other to install new PHP versions without actual need for a library itself really concerns me.

pjcdawkins commented 9 years ago

I just notice there are some interesting new features in the pull requests, so please merge and tag those as stable before requiring 5.4, if you really want to.

RHEL-6 supports PHP 5.3 until 2017...

pjcdawkins commented 9 years ago

Anyway, short array syntax is a very insignificant feature of 5.4, it's no reason to require it

aik099 commented 9 years ago

I've recently created new server on Amazon Web Services using their Amazon Linux AMI and there is still PHP 5.3 installed by default. The yum install php also gives me PHP 5.3. Same goes for any CentOS version.

To install PHP 5.4 or PHP 5.5 there you need to connect alternative YUM repositories and experience package conflicts with already installed packages.

stecman commented 9 years ago

short array syntax is a very insignificant feature of 5.4, it's no reason to require it

This has been my view with other projects too, so I'll make the minimum version 5.3.