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

Skip overwriting ~/.pearrc for PHP 5.3 and older #1236

Merged
merged 3 commits into from
Oct 31, 2017
Merged

Conversation

BanzaiMan
Copy link
Contributor

@BanzaiMan BanzaiMan commented Oct 25, 2017

PHP 5.3 and older have problems with the [] array syntax, so we
need to avoid it.

Resolves travis-ci/travis-ci#8639.

PHP 5.3 and older have problems with the `[]` array syntax, so we
need to avoid it.
This way, there is no empty if-else branch
@BanzaiMan
Copy link
Contributor Author

Tested here: https://staging.travis-ci.org/BanzaiMan/travis_staging_test/builds/637772

5.3.3 is pre-installed on the GCE Precise image, but .pearrc is not written.

Copy link
Contributor

@bogdanap bogdanap left a comment

Choose a reason for hiding this comment

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

The change looks ok, but just wanted to mention that the spec seems unrelated to me. Was that intentionally included?

@BanzaiMan
Copy link
Contributor Author

@bogdanap The spec is definitely intentional. It has a bad description of it. I'll update it shortly.

Copy link
Contributor

@bogdanap bogdanap left a comment

Choose a reason for hiding this comment

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

Yay for new specs! 🎉

@BanzaiMan BanzaiMan merged commit f45d079 into master Oct 31, 2017
@BanzaiMan BanzaiMan deleted the ha-php-5.3 branch October 31, 2017 15:35
@DiegoPino
Copy link

@BanzaiMan thanks for fixing this so quick. 👏

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

Successfully merging this pull request may close these issues.

3 participants