Skip to content

Commit 8a9e031

Browse files
committed
Fix #77027: tidy::getOptDoc() not available on Windows
We define the `HAVE_TIDYOPTGETDOC` macro unconditionally, since the Windows PHP SDK ships libtidy 2009/04/06 or newer for a long time. We do not add a regression test, since 021.phpt already tests `tidy_get_opt_doc`, but has previously been skipped due to unavailability of the function.
1 parent b331242 commit 8a9e031

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ PHP NEWS
2626
. Fixed bug #76965 (INI_SCANNER_RAW doesn't strip trailing whitespace).
2727
(Pierrick)
2828

29+
- Tidy:
30+
. Fixed bug #77027 (tidy::getOptDoc() not available on Windows). (cmb)
31+
2932
- XML:
3033
. Fixed bug #30875 (xml_parse_into_struct() does not resolve entities). (cmb)
3134
. Add support for getting SKIP_TAGSTART and SKIP_WHITE options. (cmb)

ext/tidy/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if (PHP_TIDY != "no") {
1717

1818
EXTENSION("tidy", "tidy.c");
1919
AC_DEFINE('HAVE_TIDY', 1, 'Have TIDY library');
20+
AC_DEFINE('HAVE_TIDYOPTGETDOC', 1, "tidy_get_opt_doc function")
2021
ADD_FLAG('CFLAGS_TIDY', '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
2122
if (!PHP_TIDY_SHARED) {
2223
ADD_DEF_FILE("ext\\tidy\\php_tidy.def");

0 commit comments

Comments
 (0)