-
Notifications
You must be signed in to change notification settings - Fork 431
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
Conversation
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
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 |
There was a problem hiding this 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?
@bogdanap The spec is definitely intentional. It has a bad description of it. I'll update it shortly. |
There was a problem hiding this 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 thanks for fixing this so quick. 👏 |
PHP 5.3 and older have problems with the
[]
array syntax, so weneed to avoid it.
Resolves travis-ci/travis-ci#8639.