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.
1 parent 911dc5b commit efd00b8Copy full SHA for efd00b8
NEWS
@@ -2,6 +2,10 @@ PHP NEWS
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
?? ??? ????, PHP 8.2.23
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
@@ -2764,7 +2764,11 @@ PHP_FUNCTION(curl_error)
2764
2765
if (ch->err.no) {
2766
ch->err.str[CURL_ERROR_SIZE] = 0;
2767
- RETURN_STRING(ch->err.str);
+ if (strlen(ch->err.str) > 0) {
2768
+ RETURN_STRING(ch->err.str);
2769
+ } else {
2770
+ RETURN_STRING(curl_easy_strerror(ch->err.no));
2771
+ }
2772
} else {
2773
RETURN_EMPTY_STRING();
2774
}
0 commit comments