mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
Merge branch 'PHP-7.1'
* PHP-7.1: Update more functions with path check
This commit is contained in:
commit
540e672868
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user