curl_file_create optional parameters

This commit is contained in:
KapitanOczywisty 2019-12-28 17:48:20 +01:00 committed by GitHub
parent 9ddcbd01cc
commit d541fb5db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class CURLFile {
* @param string $postname [optional] <p>Name of the file.</p>
* @since 5.5
*/
function __construct($filename, $mimetype, $postname) {
function __construct($filename, $mimetype = '', $postname = '') {
}
/**
@ -2348,7 +2348,7 @@ function curl_escape($ch, $str) {}
* Returns a {@link https://secure.php.net/manual/en/class.curlfile.php CURLFile} object.
* @since 5.5
*/
function curl_file_create($filename, $mimetype, $postname) {}
function curl_file_create($filename, $mimetype = '', $postname = '') {}
/**
* Close a cURL session