mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2' into PHP-8.3
This commit is contained in:
4
NEWS
4
NEWS
@@ -2,6 +2,10 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? ????, PHP 8.3.11
|
||||
|
||||
- Curl:
|
||||
. Fixed case when curl_error returns an empty string.
|
||||
(David Carlier)
|
||||
|
||||
- Soap:
|
||||
. Fixed bug #55639 (Digest autentication dont work). (nielsdos)
|
||||
|
||||
|
||||
@@ -2869,7 +2869,11 @@ PHP_FUNCTION(curl_error)
|
||||
|
||||
if (ch->err.no) {
|
||||
ch->err.str[CURL_ERROR_SIZE] = 0;
|
||||
RETURN_STRING(ch->err.str);
|
||||
if (strlen(ch->err.str) > 0) {
|
||||
RETURN_STRING(ch->err.str);
|
||||
} else {
|
||||
RETURN_STRING(curl_easy_strerror(ch->err.no));
|
||||
}
|
||||
} else {
|
||||
RETURN_EMPTY_STRING();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user