summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-06-25 19:00:37 +0200
committerNikita Popov <nikita.ppv@gmail.com>2018-06-25 22:27:42 +0200
commitf2c4f06f84fd3a9fbb241dd84179eaa591f196a4 (patch)
tree432c7f99cd75b0e63f3d44d85788fffc210dd43f
parent49a4e695845bf55e059e7f88e54b1111fe284223 (diff)
downloadphp-git-f2c4f06f84fd3a9fbb241dd84179eaa591f196a4.tar.gz
Remove unnecessary uses of z/ parameters
-rw-r--r--ext/filter/filter.c2
-rw-r--r--ext/gd/gd_ctx.c4
-rw-r--r--ext/pdo/pdo_stmt.c4
-rw-r--r--ext/sqlite3/sqlite3.c4
-rw-r--r--main/output.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/ext/filter/filter.c b/ext/filter/filter.c
index d7eab36bb6..56c93199f0 100644
--- a/ext/filter/filter.c
+++ b/ext/filter/filter.c
@@ -767,7 +767,7 @@ PHP_FUNCTION(filter_var)
zend_long filter = FILTER_DEFAULT;
zval *filter_args = NULL, *data;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "z/|lz", &data, &filter, &filter_args) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "z|lz", &data, &filter, &filter_args) == FAILURE) {
return;
}
diff --git a/ext/gd/gd_ctx.c b/ext/gd/gd_ctx.c
index cd63fead65..9c3d73335c 100644
--- a/ext/gd/gd_ctx.c
+++ b/ext/gd/gd_ctx.c
@@ -106,7 +106,7 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
}
break;
case PHP_GDIMG_TYPE_BMP:
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|z/!b", &imgind, &to_zval, &compressed) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|z!b", &imgind, &to_zval, &compressed) == FAILURE) {
return;
}
break;
@@ -117,7 +117,7 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
* PHP_GDIMG_TYPE_WBM
* PHP_GDIMG_TYPE_WEBP
* */
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|z/!ll", &imgind, &to_zval, &quality, &basefilter) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|z!ll", &imgind, &to_zval, &quality, &basefilter) == FAILURE) {
return;
}
}
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index 94bb02d4b0..fbd2b12de4 100644
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@ -1578,8 +1578,8 @@ static PHP_METHOD(PDOStatement, bindValue)
param.paramno = -1;
if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(),
- "lz/|l", &param.paramno, &parameter, &param_type)) {
- if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "Sz/|l", &param.name,
+ "lz|l", &param.paramno, &parameter, &param_type)) {
+ if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "Sz|l", &param.name,
&parameter, &param_type)) {
RETURN_FALSE;
}
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
index 2a3ec854ed..1924b4fc2b 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -1520,8 +1520,8 @@ PHP_METHOD(sqlite3stmt, bindValue)
param.param_number = -1;
param.type = SQLITE3_TEXT;
- if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "lz/|l", &param.param_number, &parameter, &param.type) == FAILURE) {
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sz/|l", &param.name, &parameter, &param.type) == FAILURE) {
+ if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "lz|l", &param.param_number, &parameter, &param.type) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sz|l", &param.name, &parameter, &param.type) == FAILURE) {
return;
}
}
diff --git a/main/output.c b/main/output.c
index 048814e0b9..8518aa7c16 100644
--- a/main/output.c
+++ b/main/output.c
@@ -1309,7 +1309,7 @@ PHP_FUNCTION(ob_start)
zend_long chunk_size = 0;
zend_long flags = PHP_OUTPUT_HANDLER_STDFLAGS;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "|z/ll", &output_handler, &chunk_size, &flags) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "|zll", &output_handler, &chunk_size, &flags) == FAILURE) {
return;
}