php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: karol at babioch dot de
New email:
PHP Version: OS:

 

 [2007-12-27 19:40 UTC] karol at babioch dot de
Description:
------------
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:
---------------
<?php

error_reporting(E_ALL|E_STRICT);

// 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:



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC