File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? ????, PHP 8.2.23
4
4
5
+ - Curl:
6
+ . Fixed case when curl_error returns an empty string.
7
+ (David Carlier)
8
+
5
9
- Soap:
6
10
. Fixed bug #55639 (Digest autentication dont work). (nielsdos)
7
11
Original file line number Diff line number Diff line change @@ -2764,7 +2764,11 @@ PHP_FUNCTION(curl_error)
2764
2764
2765
2765
if (ch -> err .no ) {
2766
2766
ch -> err .str [CURL_ERROR_SIZE ] = 0 ;
2767
- RETURN_STRING (ch -> err .str );
2767
+ if (strlen (ch -> err .str ) > 0 ) {
2768
+ RETURN_STRING (ch -> err .str );
2769
+ } else {
2770
+ RETURN_STRING (curl_easy_strerror (ch -> err .no ));
2771
+ }
2768
2772
} else {
2769
2773
RETURN_EMPTY_STRING ();
2770
2774
}
You can’t perform that action at this time.
0 commit comments