php.net |  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: cmb@php.net 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] cmb@php.net
Description:
------------
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] <http://php.net/manual/en/tidy.getoptdoc.php>

Test script:
---------------
<?php
$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
present.

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-17 13:59 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2018-10-17 14:41 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8a9e0312ce90f6cdc55a8fb6f1e1af326306b97a
Log: Fix #77027: tidy::getOptDoc() not available on Windows
 [2018-10-17 14:41 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC