Skip to content

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

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

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.
@Sjord
Sjord force-pushed the curl-move-postredir branch from 168fbc3 to 9870cba Compare August 30, 2026 20:51
@Sjord
Sjord marked this pull request as ready for review August 30, 2026 20:51
@Sjord
Sjord requested a review from adoy as a code owner August 30, 2026 20:51
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