From 5356bad8c66d9df437c5136d02f6654a5b56b2b9 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 22 Sep 2019 16:28:42 +0200 Subject: Remove unused parameter The `$use_include_path` parameter doesn't make sense for `tidy_repair_string()`, and actually unused, so we remove it. --- ext/tidy/tidy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/tidy/tidy.c') diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index d720cd7ce1..2860c31752 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -452,13 +452,14 @@ static void php_tidy_quick_repair(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_fil { char *enc = NULL; size_t enc_len = 0; - zend_bool use_include_path = 0; TidyDoc doc; TidyBuffer *errbuf; zend_string *data, *arg1; zval *config = NULL; if (is_file) { + zend_bool use_include_path = 0; + if (zend_parse_parameters(ZEND_NUM_ARGS(), "P|zsb", &arg1, &config, &enc, &enc_len, &use_include_path) == FAILURE) { RETURN_FALSE; } @@ -466,7 +467,7 @@ static void php_tidy_quick_repair(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_fil RETURN_FALSE; } } else { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|zsb", &arg1, &config, &enc, &enc_len, &use_include_path) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|zs", &arg1, &config, &enc, &enc_len) == FAILURE) { RETURN_FALSE; } data = arg1; -- cgit v1.2.1