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

How hard would it be to add support of PHP 5.3? #28

Closed
kirill-konshin opened this issue Jul 30, 2015 · 8 comments
Closed

How hard would it be to add support of PHP 5.3? #28

kirill-konshin opened this issue Jul 30, 2015 · 8 comments

Comments

@kirill-konshin
Copy link

I know that it's super obsolete, but some of our customers still use it...

It would be great if Guzzle PSR-7 implementation will also be 5.3 compatible.

@mtdowling
Copy link
Member

I don't think it's a good idea to downgrade to 5.3 at this point. It would require additional dev time to ensure 5.3 compatibility, and that's something that most of the PHP community is moving away from supporting. Maybe you can create a 5.3 compatible fork.

@kirill-konshin
Copy link
Author

What if I will create a PR instead?

So far I can see that [] are used instead of array() and traits. Traits can be replaced with base classes since all classes that use traits do not extend anything and only implement the interface.

If the downgrade would be rather painless, then why not...

@mtdowling
Copy link
Member

It's not a one time cost. It's also maintenance going forward.

On Jul 29, 2015, at 10:58 PM, Kirill Konshin notifications@github.com wrote:

What if I will create a PR instead?

So far I can see that [] are used instead of array() and traits. Traits can be replaced with base classes since all classes that use traits do not extend anything and only implement the interface.


Reply to this email directly or view it on GitHub.

@kirill-konshin
Copy link
Author

Do you have anything special in the roadmap for this project?

@kirill-konshin
Copy link
Author

Will you accept a PR or should I just make a fork?

@mtdowling
Copy link
Member

You should fork if you need PHP 5.3 support. Apologies, but I don't want to support 5.3 in this repo.

@kirill-konshin
Copy link
Author

Since in our company we have a requirement to support 5.3 and Guzzle\PSR7 will be used in company PHP SDK I think I can support 5.3 on long term. I will fork the repo then make a PR, but it's up to you to accept it.

@kirill-konshin
Copy link
Author

Made a PR #30

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

No branches or pull requests

2 participants