#50395 [Opn->Bgs]: Possible Documentation Typo Only
| From: | rquadling@php.net | Date: | Mon, 07 Dec 2009 11:16:06 +0000 |
| Subject: | #50395 [Opn->Bgs]: Possible Documentation Typo Only | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3411@lists.php.net to get a copy of this message | ||
ID: 50395
Updated by: rquadling@php.net
Reported By: gary at unpcbs dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Apache
PHP Version: 5.2.11
New Comment:
As the output handler is the Tidy, the HTML fragment is converted into
a
clean HTML markup.
Previous Comments:
------------------------------------------------------------------------
[2009-12-07 02:50:01] gary at unpcbs dot com
Description:
------------
Typo in Example #1 ob_tidyhandler()?
Should </i> be </p> in the following ...
<?php
ob_start('ob_tidyhandler');
echo '<p>test</i>';
?>
Reproduce code:
---------------
---
From manual page: function.ob-tidyhandler#Examples
---
<?php
ob_start('ob_tidyhandler');
echo '<p>test</i>';
?>
The above example will output:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>test</p>
</body>
</html>
Expected result:
----------------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>test</i>
</body>
</html>
Actual result:
--------------
I've not bothered to test this.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50395&edit=1