Skip to content

Commit b3870e4

Browse files
authored
Fix deprecation for tidyOptIsReadOnly
The tidyOptGetCategory function (added in libtidy 5.4.0) if only useable if TidyInternalCategory (added in libtidy 5.6.0) is also present, so check for the latter instead.
1 parent 347723a commit b3870e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/tidy/config.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ if test "$PHP_TIDY" != "no"; then
6262
AC_DEFINE(HAVE_TIDYRELEASEDATE,1,[ ])
6363
], [], [])
6464

65-
PHP_CHECK_LIBRARY($TIDY_LIB_NAME,tidyOptGetCategory,
65+
dnl The tidyOptGetCategory function (added in libtidy 5.4.0) if only useable
66+
dnl if TidyInternalCategory (added in libtidy 5.6.0) is also present.
67+
PHP_CHECK_LIBRARY($TIDY_LIB_NAME,TidyInternalCategory,
6668
[
6769
AC_DEFINE(HAVE_TIDYOPTGETCATEGORY,1,[ ])
6870
], [], [])

0 commit comments

Comments
 (0)