Repository navigation
Document curl_errno/curl_error behavior with multi handles - #5233
Merged
lacatoire merged 2 commits intoAug 24, 2026
Merged
Conversation
lacatoire
commented
Jan 30, 2026
lacatoire
commented
Jan 30, 2026
lacatoire
commented
Jan 30, 2026
lacatoire
commented
Jan 30, 2026
Add a note to curl_errno() and curl_error() documentation explaining that these functions always return 0 or empty string when the handle was executed via curl_multi_exec(). Users should use curl_multi_info_read() to retrieve errors for individual transfers. Refs php#5047
lacatoire
force-pushed
the
fix/issue-5047-curl-errno-multi-behavior
branch
2 times, most recently
from
August 24, 2026 08:39
af2e078 to
ae1679d
Compare
lacatoire
force-pushed
the
fix/issue-5047-curl-errno-multi-behavior
branch
from
August 24, 2026 08:43
ae1679d to
a511529
Compare
This was referenced Sep 26, 2026
KentarouTakeda
added a commit
to php/doc-ja
that referenced
this pull request
Sep 26, 2026
curl の 3 ファイルを原文の変更に追従しました。これで curl モジュールの未訳・要更新はなくなります。 - `curl_errno()` と `curl_error()` に、`curl_multi_exec()` で実行したハンドルでは `curl_multi_info_read()` がそのハンドルのメッセージを返すまでそれぞれ 0 と空文字列を返す、という注記が追加されました(php/doc-en@ff7a005、php/doc-en#5233。注記の内容は php/doc-en@fa9bae0、php/doc-en#5884 で修正) - 例のページに、POST リクエストを送る例と、JSON を POST リクエストで送る例が追加されました(php/doc-en@e7c6a2f、php/doc-en#4612) ## 対象ファイル reference/curl/ (3) — examples.xml, functions/curl-errno.xml, functions/curl-error.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a note to
curl_errno()andcurl_error()documentation explaining that these functions always return 0 or empty string when the handle was executed viacurl_multi_exec(). Users should usecurl_multi_info_read()to retrieve errors for individual transfers.Fixes #5047