Merge branch 'PHP-7.1'

* PHP-7.1:
  Update more functions with path check
This commit is contained in:
Stanislav Malyshev 2017-01-15 17:33:48 -08:00
commit 540e672868
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;
}