diff options
Diffstat (limited to 'ext/tidy/tidy.c')
-rw-r--r-- | ext/tidy/tidy.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index c5d43b097b..7708306e3a 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -31,7 +31,12 @@ #include "ext/standard/info.h" #include "tidy.h" + +#if HAVE_TIDYBUFFIO_H +#include "tidybuffio.h" +#else #include "buffio.h" +#endif /* compatibility with older versions of libtidy */ #ifndef TIDY_CALL @@ -1078,6 +1083,9 @@ static PHP_MINFO_FUNCTION(tidy) { php_info_print_table_start(); php_info_print_table_header(2, "Tidy support", "enabled"); +#if HAVE_TIDYBUFFIO_H + php_info_print_table_row(2, "libTidy Version", (char *)tidyLibraryVersion()); +#endif php_info_print_table_row(2, "libTidy Release", (char *)tidyReleaseDate()); php_info_print_table_row(2, "Extension Version", PHP_TIDY_VERSION " ($Id$)"); php_info_print_table_end(); @@ -1849,7 +1857,7 @@ static TIDY_NODE_METHOD(getParent) __constructor for tidyNode. */ static TIDY_NODE_METHOD(__construct) { - php_error_docref(NULL, E_ERROR, "You should not create a tidyNode manually"); + zend_throw_error(NULL, "You should not create a tidyNode manually"); } /* }}} */ |