summaryrefslogtreecommitdiff
path: root/ext/curl/curl_file.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-06-18 09:26:09 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-06-18 13:26:32 +0200
commited6fbf91746e4c807e36f3b09a24f04298ec6b71 (patch)
tree4aad935f520452a5845272eda60401ce310d41a0 /ext/curl/curl_file.c
parenta43fd3bbef313c880b8acbeac7babef074471e31 (diff)
downloadphp-git-ed6fbf91746e4c807e36f3b09a24f04298ec6b71.tar.gz
Fix UNKNOWN default values in ext/curl
Closes GH-5734
Diffstat (limited to 'ext/curl/curl_file.c')
-rw-r--r--ext/curl/curl_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/curl/curl_file.c b/ext/curl/curl_file.c
index bcfc518051..bb0449c179 100644
--- a/ext/curl/curl_file.c
+++ b/ext/curl/curl_file.c
@@ -35,8 +35,8 @@ static void curlfile_ctor(INTERNAL_FUNCTION_PARAMETERS)
ZEND_PARSE_PARAMETERS_START(1,3)
Z_PARAM_PATH_STR(fname)
Z_PARAM_OPTIONAL
- Z_PARAM_STR(mime)
- Z_PARAM_STR(postname)
+ Z_PARAM_STR_OR_NULL(mime)
+ Z_PARAM_STR_OR_NULL(postname)
ZEND_PARSE_PARAMETERS_END();
zend_update_property_string(curl_CURLFile_class, cf, "name", sizeof("name")-1, ZSTR_VAL(fname));