On Fri, 16 Apr 2004, John Coggeshall wrote:
> {
> + TSRMLS_FETCH();
> php_error_docref(NULL TSRMLS_CC, E_ERROR, "Could not allocate memory for tidy!
> (Reason: %s)", (char *)msg);
> }
spaces => tabs ?
and here too:
> - TIDY_APPLY_CONFIG_ZVAL(obj->ptdoc->doc, options);
> + if(inputfile) {
> +
> + if (!(contents = php_tidy_file_to_mem(inputfile, use_include_path
> TSRMLS_CC))) {
> + TIDY_THROW("Cannot Load '%s' into memory %s", inputfile,
> (use_include_path) ? "(Using include path)" : "");
> + return;
> + }
> +
> + TIDY_APPLY_CONFIG_ZVAL(obj->ptdoc->doc, options);
>
> - php_tidy_parse_string(obj, contents, enc TSRMLS_CC);
> + php_tidy_parse_string(obj, contents, enc TSRMLS_CC);
> +
> + efree(contents);
> + }
>
> - efree(contents);
> -
> }
>
> TIDY_DOC_METHOD(parseFile)
>
>
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php