|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43692 HTML produced by an Exception of DirectoryIterator gets converted
Submitted: 2007-12-27 19:40 UTC Modified: 2008-03-07 01:00 UTC
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: karol at babioch dot de Assigned: helly (profile)
Status: No Feedback Package: *Directory/Filesystem functions
PHP Version: 5.2.5 OS: Windows XP Professional
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: karol at babioch dot de
New email:
PHP Version: OS:


 [2007-12-27 19:40 UTC] karol at babioch dot de
The HTML code which is produced by an Exception thrown by the DirectoryIterator gets converted to HTML entities, meaning the link is not shown nor clickable.

Reproduce code:


// directory mustn't exist
$dir = new DirectoryIterator('xyz');


Expected result:
<br />
<b>Fatal error</b>:  Uncaught exception 'RuntimeException' with message 'DirectoryIterator::__construct(xyz) [<a href='function.DirectoryIterator---construct'>;function.DirectoryIterator---construct</a>;]: failed to open dir:

Actual result:
<br />
<b>Fatal error</b>:  Uncaught exception 'RuntimeException' with message 'DirectoryIterator::__construct(xyz) [&lt;a href='function.DirectoryIterator---construct'&gt;function.DirectoryIterator---construct&lt;/a&gt;]: failed to open dir:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 19 14:03:37 2021 UTC