Skip to content

Commit 01e339d

Browse files
authored
ext/tidy: Enable tidyOptGetCategory on Windows (php#20226)
The tidy library on Windows has been updated to tidy-html5 5.6.0 which provides tidyOptGetCategory() function and has the TidyInternalCategory enumeration. https://github.com/winlibs/libtidy
1 parent adb90d0 commit 01e339d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/tidy/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ if test "$PHP_TIDY" != "no"; then
8181
])
8282
AS_VAR_IF([php_ac_cv_have_tidyoptgetcategory], [yes],
8383
[AC_DEFINE([HAVE_TIDYOPTGETCATEGORY], [1],
84-
[Define to 1 if tidyOptGetCategory is available.])])
84+
[Define to 1 if Tidy library has the 'tidyOptGetCategory' function and
85+
supports the 'TidyInternalCategory' enumeration.])])
8586

8687
CPPFLAGS=$old_CPPFLAGS
8788

ext/tidy/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if (PHP_TIDY != "no") {
2121
AC_DEFINE('HAVE_TIDY_H', 1, "Define to 1 if you have the <tidy.h> header file.")
2222
AC_DEFINE('HAVE_TIDYOPTGETDOC', 1, "Define to 1 if Tidy library has the 'tidyOptGetDoc' function.")
2323
AC_DEFINE('HAVE_TIDYRELEASEDATE', 1, "Define to 1 if Tidy library has the 'tidyReleaseDate' function.")
24+
AC_DEFINE('HAVE_TIDYOPTGETCATEGORY', 1, "Define to 1 if Tidy library has the 'tidyOptGetCategory' function and supports the 'TidyInternalCategory' enumeration.")
2425
ADD_FLAG('CFLAGS_TIDY', '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
2526
if (!PHP_TIDY_SHARED) {
2627
ADD_DEF_FILE("ext\\tidy\\php_tidy.def");

0 commit comments

Comments
 (0)