mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Use proper macro to return string with unknown length
This commit is contained in:
parent
21b9a2ca2a
commit
d5e22e2a29
@ -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, 1);
|
||||
RETURN_STRING(ch->err.str, 1);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user