]> granicus.if.org Git - php/commitdiff
Fix #77027: tidy::getOptDoc() not available on Windows
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 17 Oct 2018 14:27:07 +0000 (16:27 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 17 Oct 2018 14:27:07 +0000 (16:27 +0200)
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.

NEWS
ext/tidy/config.w32

diff --git a/NEWS b/NEWS
index 4652c6657f590cfcf6d84c5b04f3494e1fccea0e..b1eb3c3be1ed28074dfbb33409523492f2d5b4e4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,9 @@ PHP                                                                        NEWS
   . Fixed bug #76965 (INI_SCANNER_RAW doesn't strip trailing whitespace).
     (Pierrick)
 
+- Tidy:
+  . Fixed bug #77027 (tidy::getOptDoc() not available on Windows). (cmb)
+
 - XML:
   . Fixed bug #30875 (xml_parse_into_struct() does not resolve entities). (cmb)
   . Add support for getting SKIP_TAGSTART and SKIP_WHITE options. (cmb)
index 44b2abeacc41ac4121b80522671744575bfc6f2b..aa4eb465398cadb192a793302bc201157957d4e1 100644 (file)
@@ -17,6 +17,7 @@ if (PHP_TIDY != "no") {
 
                EXTENSION("tidy", "tidy.c");
                AC_DEFINE('HAVE_TIDY', 1, 'Have TIDY library');
+               AC_DEFINE('HAVE_TIDYOPTGETDOC', 1, "tidy_get_opt_doc function")
                ADD_FLAG('CFLAGS_TIDY', '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
                if (!PHP_TIDY_SHARED) {
                        ADD_DEF_FILE("ext\\tidy\\php_tidy.def");