-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround PHP < 5.6 bug, not verifying certs, stopping Request2
- Loading branch information
Showing
9 changed files
with
89 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d973e99
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.
@onli We need a way to create a generic API function which sets this $options and PHP dependant stuff. We have that backend_http_request start hook which serendipity_event_proxy (or sth like that) uses, it would be good to propagate that to every call.
The complex thing might be to properly make all this HTTP_Request2 be properly compatible with the spartacus plugins, so that a spartacus plugin can work with s9y 2.0 but also 2.1...
d973e99
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.
I agree. Did not want to introduce that without discussion (because it is a big thing to introduce a custom s9y request api), but during this thought that it would be nice to let s9y care about all of this. You think the best way would be to just give the request to backend_http_request? Not serendipity_request_start()? Or offering a serendipity_request() that makes the result itself?
Yes, for the moment that might introduce the same ifs/complexity we wanted to avoid… but we could do it for the core and core plugins and see where that leads us.
d973e99
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.
@onli Might need to think about this. We could of course add new parameteres to serendipity_request_start() that when given, can perform the whole request and return it. That way old plugins can use the function as is, but the new core can utilize the method. The only thing that might get awkward is if we update our spartacus plugin to use the new function, we'll still have the legacy code for s9y < 2.1 versions in them.
But yeah, better to get started with the core and see which and how many plugins would look like with this added complexity.
d973e99
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.
We don't have to hurry. For now the workaround should work, confirmed by mario for php < 5.6, and dirks issue showed that also in higher versions all is fine (in addition to my own test).
With spartacus plugin, you do not mean the spartacus plugin itself though, do you? Because this one is bundled and would be one of the cases where there is no issue, we can just change it for 2.1. Assuming I don't miss something :)