Skip to content

cURL: Support of SSL_OP_IGNORE_UNEXPECTED_EOF context option #10215

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

Closed
walkonthemarz opened this issue Jan 4, 2023 · 2 comments
Closed

cURL: Support of SSL_OP_IGNORE_UNEXPECTED_EOF context option #10215

walkonthemarz opened this issue Jan 4, 2023 · 2 comments

Comments

@walkonthemarz
Copy link

Description

PHP has already added the support of SSL_OP_IGNORE_UNEXPECTED_EOF in the OpenSSL extension but the cURL extension may still have the issue of cURL error 56: OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0.
Considering the enormous usage of the PHP curl extension(guzzle/guzzle), maybe add the option in the cURL extension to make the behavior consistent between curl extension and file_get_contents() function.

@cmb69
Copy link
Member

cmb69 commented Jan 4, 2023

This makes some sense to me, and could likely be implemented, but given that cURL might not even use OpenSSL as back-end, I think this would more likely be a suitable option to implement upstream.

@bukka
Copy link
Member

bukka commented Apr 17, 2023

Agreed this is more for upstream (curl) so closing this.

@bukka bukka closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants