php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49926 exemple output is incorrect
Submitted: 2009-10-19 19:55 UTC Modified: 2009-10-22 14:07 UTC
From: pyromanfr at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.3.0 OS: linux
Private report: No CVE-ID: None
 [2009-10-19 19:55 UTC] pyromanfr at gmail dot com
Description:
------------
the !i is used in the root tag so [i] cannot be a child of the root tag and will not be replaced.

so the exemple should output [i]Italic Text[/i] and not <i>Italic Text</i>


Reproduce code:
---------------
---
From manual page: function.bbcode-create
---
exec the exemple 

Expected result:
----------------
<b>Bold Text</b>
[i]Italic Text[/i]
<a href="http://www.php.net/">http://www.php.net/</a>
<a href="http://pecl.php.net/"><b>Content Text</b></a>
<img src="http://static.php.net/www.php.net/images/php.gif" />
<a href="http://www.php.net/">
[img]http://static.php.net/www.php.net/images/php.gif[/img]
</a>

Actual result:
--------------
<b>Bold Text</b>
<i>Italic Text</i>   <---
<a href="http://www.php.net/">http://www.php.net/</a>
<a href="http://pecl.php.net/"><b>Content Text</b></a>
<img src="http://static.php.net/www.php.net/images/php.gif" />
<a href="http://www.php.net/">
[img]http://static.php.net/www.php.net/images/php.gif[/img]
</a>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-22 14:06 UTC] svn@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=289849
Log: Fix example : Bug#49926
 [2009-10-22 14:07 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC