We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3caedd + efd00b8 commit 383d1b0Copy full SHA for 383d1b0
NEWS
@@ -2,6 +2,10 @@ PHP NEWS
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
?? ??? ????, PHP 8.3.11
4
5
+- Curl:
6
+ . Fixed case when curl_error returns an empty string.
7
+ (David Carlier)
8
+
9
- Soap:
10
. Fixed bug #55639 (Digest autentication dont work). (nielsdos)
11
ext/curl/interface.c
@@ -2869,7 +2869,11 @@ PHP_FUNCTION(curl_error)
2869
2870
if (ch->err.no) {
2871
ch->err.str[CURL_ERROR_SIZE] = 0;
2872
- RETURN_STRING(ch->err.str);
+ if (strlen(ch->err.str) > 0) {
2873
+ RETURN_STRING(ch->err.str);
2874
+ } else {
2875
+ RETURN_STRING(curl_easy_strerror(ch->err.no));
2876
+ }
2877
} else {
2878
RETURN_EMPTY_STRING();
2879
}
0 commit comments