Merge branch 'PHP-8.3'

This commit is contained in:
David Carlier 2024-07-18 06:26:54 +01:00
commit 223683dfb5
No known key found for this signature in database
GPG Key ID: D308BD11AB42D054

View File

@ -2626,7 +2626,11 @@ PHP_FUNCTION(curl_error)
if (ch->err.no) {
ch->err.str[CURL_ERROR_SIZE] = 0;
if (strlen(ch->err.str) > 0) {
RETURN_STRING(ch->err.str);
} else {
RETURN_STRING(curl_easy_strerror(ch->err.no));
}
} else {
RETURN_EMPTY_STRING();
}