mirror of
https://github.com/php/php-src.git
synced 2026-04-18 13:31:27 +02:00
Revert, this is max error size, not strlen(error)
This commit is contained in:
@@ -961,7 +961,7 @@ PHP_FUNCTION(curl_error)
|
||||
ZEND_FETCH_RESOURCE(ch, php_curl *, zid, -1, le_curl_name, le_curl);
|
||||
|
||||
ch->err.str[CURL_ERROR_SIZE] = 0;
|
||||
RETURN_STRINGL(ch->err.str, CURL_ERROR_SIZE, 1);
|
||||
RETURN_STRINGL(ch->err.str, 1);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user