Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug #65538
This patch provides support for stream wrapper usage in the
"cafile"SSL context option. Previously this value was passed directly to the underlying OpenSSL libs and necessarily required an absolute filesystem path. The following behavior now functions as expected:Security Note
Note that all stream wrappers ARE NOT supported. This is intentional. Consider the security implications of allowing the following code (which users would almost certainly attempt if allowed to do so):
The use of any stream wrapper that would be disallowed by the
allow_url_fopen=0php.ini directive will fail with anE_WARNINGof the form shown below.This prohibition IS NOT dependent upon the
allow_url_fopendirective. Stream wrappers identifying themselves with the internalis_urlflag are disallowed across the board even ifallow_url_fopen=1.Version Note
I intend to merge this for 5.6 and master as it's more a "feature request" than a bug IMO. If anyone really wants this backported for 5.4/5.5 I might be able to find the time to do so eventually.