summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/curl/curl_file.c2
-rw-r--r--ext/zip/php_zip.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/curl/curl_file.c b/ext/curl/curl_file.c
index c18f365668..92378a6c6d 100644
--- a/ext/curl/curl_file.c
+++ b/ext/curl/curl_file.c
@@ -35,7 +35,7 @@ static void curlfile_ctor(INTERNAL_FUNCTION_PARAMETERS)
zval *cf = return_value;
ZEND_PARSE_PARAMETERS_START(1,3)
- Z_PARAM_STR(fname)
+ Z_PARAM_PATH_STR(fname)
Z_PARAM_OPTIONAL
Z_PARAM_STR(mime)
Z_PARAM_STR(postname)
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 9114eb4d76..fa79ffb352 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -2617,7 +2617,7 @@ static ZIPARCHIVE_METHOD(extractTo)
RETURN_FALSE;
}
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|z", &pathto, &pathto_len, &zval_files) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|z", &pathto, &pathto_len, &zval_files) == FAILURE) {
return;
}