Skip to content

Commit 540e672

Browse files
committed
Merge branch 'PHP-7.1'
* PHP-7.1: Update more functions with path check
2 parents cd2b462 + 19e80ef commit 540e672

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/curl/curl_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static void curlfile_ctor(INTERNAL_FUNCTION_PARAMETERS)
3535
zval *cf = return_value;
3636

3737
ZEND_PARSE_PARAMETERS_START(1,3)
38-
Z_PARAM_STR(fname)
38+
Z_PARAM_PATH_STR(fname)
3939
Z_PARAM_OPTIONAL
4040
Z_PARAM_STR(mime)
4141
Z_PARAM_STR(postname)

ext/zip/php_zip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2617,7 +2617,7 @@ static ZIPARCHIVE_METHOD(extractTo)
26172617
RETURN_FALSE;
26182618
}
26192619

2620-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|z", &pathto, &pathto_len, &zval_files) == FAILURE) {
2620+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|z", &pathto, &pathto_len, &zval_files) == FAILURE) {
26212621
return;
26222622
}
26232623

0 commit comments

Comments
 (0)