|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
48 - 3 = ?
Subscribe to this entry?

 [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: Tue Oct 26 22:03:33 2021 UTC