PHP_FUNCTION(tidy_parse_string) {
char *input;
+ int input_len;
zval *res;
PHPTidyDoc *tdoc;
}
if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
- "rs", &res, &input) == FAILURE) {
+ "rs", &res, &input, &input_len) == FAILURE) {
return;
}
char *inputfile;
+ int input_len;
zval *res;
PHPTidyDoc *tdoc;
php_stream *stream;
}
if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
- "rs", &res, &inputfile) == FAILURE) {
+ "rs", &res, &inputfile, &input_len) == FAILURE) {
return;
}
PHP_FUNCTION(tidy_load_config) {
zval *res;
char *filename;
+ int filename_len;
PHPTidyDoc *tdoc;
if(ZEND_NUM_ARGS() != 2) {
}
if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
- "rs", &res, &filename) == FAILURE) {
+ "rs", &res, &filename, &filename_len) == FAILURE) {
return;
}
zval *res;
char *filename;
char *encoding;
+ int enc_len, file_len;
PHPTidyDoc *tdoc;
if(ZEND_NUM_ARGS() != 2) {
}
if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
- "rss", &res, &filename, &encoding) == FAILURE) {
+ "rss", &res, &filename, &file_len, &encoding, &enc_len) == FAILURE) {
return;
}
PHP_FUNCTION(tidy_set_encoding) {
zval *res;
char *encoding;
+ int enc_len;
PHPTidyDoc *tdoc;
if(ZEND_NUM_ARGS() != 2) {
}
if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
- "rs", &res, &encoding) == FAILURE) {
+ "rs", &res, &encoding, &enc_len) == FAILURE) {
return;
}
PHP_FUNCTION(tidy_save_config) {
zval *res;
char *filename;
+ int file_len;
PHPTidyDoc *tdoc;
if(ZEND_NUM_ARGS() != 2) {
}
if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
- "rs", &res, &filename) == FAILURE) {
+ "rs", &res, &filename, &file_len) == FAILURE) {
return;
}