Skip to content

Commit 0ab1af7

Browse files
committed
Update more functions with path check
1 parent ad9c552 commit 0ab1af7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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
int fname_len, mime_len, postname_len;
3636
zval *cf = return_value;
3737

38-
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) {
38+
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) {
3939
return;
4040
}
4141

ext/exif/exif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4210,7 +4210,7 @@ PHP_FUNCTION(exif_imagetype)
42104210
php_stream * stream;
42114211
int itype = 0;
42124212

4213-
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &imagefile, &imagefile_len) == FAILURE) {
4213+
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &imagefile, &imagefile_len) == FAILURE) {
42144214
return;
42154215
}
42164216

ext/zip/php_zip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2662,7 +2662,7 @@ static ZIPARCHIVE_METHOD(extractTo)
26622662
RETURN_FALSE;
26632663
}
26642664

2665-
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|z", &pathto, &pathto_len, &zval_files) == FAILURE) {
2665+
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|z", &pathto, &pathto_len, &zval_files) == FAILURE) {
26662666
return;
26672667
}
26682668

0 commit comments

Comments
 (0)