diff options
author | Felipe Pena <felipe@php.net> | 2011-06-06 21:28:16 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2011-06-06 21:28:16 +0000 |
commit | 32b5f8a1a3552f48d6e91c17b6d9d441c665a44d (patch) | |
tree | a6490eaed671ea190f7876994b35169200ff2df8 /ext/tidy | |
parent | a311dc244353f0ed88a273056224ee5c97cc4011 (diff) | |
download | php-git-32b5f8a1a3552f48d6e91c17b6d9d441c665a44d.tar.gz |
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
Diffstat (limited to 'ext/tidy')
-rw-r--r-- | ext/tidy/tidy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index f51f0b4579..cf8e290569 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -558,7 +558,7 @@ static void php_tidy_quick_repair(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_fil TidyBuffer *errbuf; zval **config = NULL; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|Zsb", &arg1, &arg1_len, &config, &enc, &enc_len, &use_include_path) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|Zsb", &arg1, &arg1_len, &config, &enc, &enc_len, &use_include_path) == FAILURE) { RETURN_FALSE; } @@ -1272,7 +1272,7 @@ static PHP_FUNCTION(tidy_parse_file) PHPTidyObj *obj; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|Zsb", &inputfile, &input_len, + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|Zsb", &inputfile, &input_len, &options, &enc, &enc_len, &use_include_path) == FAILURE) { RETURN_FALSE; } @@ -1586,7 +1586,7 @@ static TIDY_DOC_METHOD(__construct) PHPTidyObj *obj; TIDY_SET_CONTEXT; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sZsb", &inputfile, &input_len, + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|pZsb", &inputfile, &input_len, &options, &enc, &enc_len, &use_include_path) == FAILURE) { RETURN_FALSE; } @@ -1620,7 +1620,7 @@ static TIDY_DOC_METHOD(parseFile) obj = (PHPTidyObj *)zend_object_store_get_object(object TSRMLS_CC); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|Zsb", &inputfile, &input_len, + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|Zsb", &inputfile, &input_len, &options, &enc, &enc_len, &use_include_path) == FAILURE) { RETURN_FALSE; } |