Skip to content

ext/curl: Propagate multipart field construction errors - #24434

Open
iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/aph-curl-mime-error-code-discarded-tlk-84-work
Open

iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/aph-curl-mime-error-code-discarded-tlk-84-work

Conversation

@iliaal

@iliaal iliaal commented Oct 19, 2026

Copy link
Copy Markdown
Member

Errors from adding scalar and nested POST fields were ignored, allowing curl_setopt() to succeed with incomplete multipart data. Propagate those errors through the existing cleanup path, including when rebuilding MIME data for copied or cloned handles.

Retain add_simple_field() errors for scalar and nested POST fields so
curl_setopt(), curl_copy_handle(), and cloning reject incomplete MIME data
through the existing error and cleanup paths.
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