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
22|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33?? ??? ????, PHP 8.2.23
44
5+ - Curl:
6+ . Fixed case when curl_error returns an empty string.
7+ (David Carlier)
8+
59- Soap:
610 . Fixed bug #55639 (Digest autentication dont work). (nielsdos)
711
Original file line number Diff line number Diff line change @@ -2764,7 +2764,11 @@ PHP_FUNCTION(curl_error)
27642764
27652765 if (ch -> err .no ) {
27662766 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+ }
27682772 } else {
27692773 RETURN_EMPTY_STRING ();
27702774 }
You can’t perform that action at this time.
0 commit comments