1
0
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:
Sterling Hughes
2001-09-10 00:25:59 +00:00
parent 5830ffeb48
commit 2e890a36d4

View File

@@ -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);
}
/* }}} */