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

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.

@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
@Sjord

Sjord commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

@devnexen Could you take a look at this?

@Sjord

Sjord commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

@kocsismate Could you take a look at this?

@kocsismate

kocsismate commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

The only functional change is that negative numbers will now raise an error, which seems reasonable.

I think an upgrading note would address this concern. Otherwise LGTM!

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 9870cba to 68d08ca Compare November 11, 2026 21:52
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.

2 participants