mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.3'
This commit is contained in:
commit
223683dfb5
1 changed files with 5 additions and 1 deletions
|
@ -2626,7 +2626,11 @@ PHP_FUNCTION(curl_error)
|
||||||
|
|
||||||
if (ch->err.no) {
|
if (ch->err.no) {
|
||||||
ch->err.str[CURL_ERROR_SIZE] = 0;
|
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 {
|
} else {
|
||||||
RETURN_EMPTY_STRING();
|
RETURN_EMPTY_STRING();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue