|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77027 tidy::getOptDoc() not available on Windows
Submitted: 2018-10-17 13:28 UTC Modified: 2018-10-17 13:59 UTC
From: Assigned: cmb (profile)
Status: Closed Package: Tidy (PECL)
PHP Version: 7.1.23 OS: Windows
Private report: No CVE-ID: None
 [2018-10-17 13:28 UTC]
The tidy::getOptDoc() manual page notes[1]:

| You need at least libtidy from 25 April, 2005 for this function
| be available.

However, the official Windows PHP 7.1.23 distribution does neither
support this method nor its procedural pendant tidy_get_opt_doc(),
even though it ships with libtidy 5.4.0 (2017/03/01).

[1] <>

Test script:
$tidy = new tidy;
echo $tidy->getOptDoc('tidy-mark');

Expected result:
This option specifies if Tidy should add a <code>meta</code>
element to the document head to indicate that the document has
been tidied. <br/>Tidy won't add a meta element if one is already

Actual result:
Fatal error: Uncaught Error: Call to undefined method tidy::getOptDoc() in […]


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-17 13:59 UTC]
-Assigned To: +Assigned To: cmb
 [2018-10-17 14:41 UTC]
Automatic comment on behalf of
Log: Fix #77027: tidy::getOptDoc() not available on Windows
 [2018-10-17 14:41 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 14:01:29 2024 UTC