Skip to content

ext/curl: handle CURLOPT_POSTREDIR as normal long - #23357

Draft
Sjord wants to merge 1 commit into
php:masterfrom
Sjord:curl-move-postredir
Draft

ext/curl: handle CURLOPT_POSTREDIR as normal long#23357
Sjord wants to merge 1 commit into
php:masterfrom
Sjord:curl-move-postredir

Conversation

@Sjord

@Sjord Sjord commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Don't treat CURLOPT_POSTREDIR specially. Just pass its value to curl directly. There is no need to do & CURL_REDIR_POST_ALL. Curl already does this internally. The only functional change is that negative numbers will now raise an error, which seems reasonable.

Don't treat CURLOPT_POSTREDIR specially. Just pass its value to curl
directly. There is no need to do `& CURL_REDIR_POST_ALL`. Curl already
does this internally. The only functional change is that negative
numbers will now raise an error, which seems reasonable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant