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

Bugfix: Empty Encoding causes Write Error #83

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

zanbaldwin
Copy link
Contributor

Passing an empty string for the cURL option CURLOPT_ENCODING causes a write error due to a 0-length write in the underlying libcurl, starting in PHP 8.3.7.

This has been fixed in cURL and, if I understand correctly, the appropriate fix will be to use the following:

curl_setopt($ch, CURLOPT_ACCEPT_ENCODING, '');

Unfortunately that has not landed in PHP yet and as of PHP 8.3.8 still causes the error.
So for now, I've just restricted auto-detection of encoding to PHP versions below 8.3.7.

Passing an empty string for the cURL option CURLOPT_ENCODING causes a write error due to a 0-length write in the underlying libcurl, starting in PHP 8.3.7.
@lesstif lesstif merged commit e2162c1 into lesstif:main Sep 16, 2024
1 of 2 checks passed
@zanbaldwin zanbaldwin deleted the bugfix/curl-encoding-8.3.7 branch September 16, 2024 10:56
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

Successfully merging this pull request may close these issues.

2 participants