summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2017-01-15 17:31:08 -0800
committerStanislav Malyshev <stas@php.net>2017-01-15 17:31:08 -0800
commit0ab1af7d3eff815e1809fe044e54283b5a1b8e27 (patch)
tree1a44624574f5f7392cfd01e517e7b6cdbd675fec
parentad9c552b120b8f73a5e87b2f8af05e32db512e9f (diff)
downloadphp-git-0ab1af7d3eff815e1809fe044e54283b5a1b8e27.tar.gz
Update more functions with path check
-rw-r--r--ext/curl/curl_file.c2
-rw-r--r--ext/exif/exif.c2
-rw-r--r--ext/zip/php_zip.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/curl/curl_file.c b/ext/curl/curl_file.c
index 029a58a914..979249221d 100644
--- a/ext/curl/curl_file.c
+++ b/ext/curl/curl_file.c
@@ -35,7 +35,7 @@ static void curlfile_ctor(INTERNAL_FUNCTION_PARAMETERS)
int fname_len, mime_len, postname_len;
zval *cf = return_value;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) {
return;
}
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index 3663b3f226..1c8772f76b 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -4210,7 +4210,7 @@ PHP_FUNCTION(exif_imagetype)
php_stream * stream;
int itype = 0;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &imagefile, &imagefile_len) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &imagefile, &imagefile_len) == FAILURE) {
return;
}
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 9f2b3768d3..52f058c708 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -2662,7 +2662,7 @@ static ZIPARCHIVE_METHOD(extractTo)
RETURN_FALSE;
}
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|z", &pathto, &pathto_len, &zval_files) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|z", &pathto, &pathto_len, &zval_files) == FAILURE) {
return;
}