Skip to content

Commit 6d243e2

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.
1 parent 9b30788 commit 6d243e2

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
@@ -57,7 +57,9 @@ if test "$PHP_TIDY" != "no"; then
5757
[],
5858
[-L$TIDY_LIBDIR])
5959

60-
PHP_CHECK_LIBRARY([$TIDY_LIB_NAME], [tidyOptGetCategory],
60+
dnl The tidyOptGetCategory function (added in libtidy 5.4.0) if only useable
61+
dnl if TidyInternalCategory (added in libtidy 5.6.0) is also present.
62+
PHP_CHECK_LIBRARY([$TIDY_LIB_NAME], [TidyInternalCategory],
6163
[AC_DEFINE([HAVE_TIDYOPTGETCATEGORY], [1],
6264
[Define to 1 if Tidy library has the 'tidyOptGetCategory' function.])],
6365
[],

0 commit comments

Comments
 (0)