#43692 [Opn->Asn]: HTML produced by an Exception of DirectoryIterator gets converted

From: Date: Wed, 02 Jan 2008 18:37:04 +0000
Subject: #43692 [Opn->Asn]: HTML produced by an Exception of DirectoryIterator gets converted
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120991@lists.php.net to get a copy of this message
ID: 43692 Updated by: iliaa@php.net Reported By: karol at babioch dot de -Status: Open +Status: Assigned Bug Type: *Directory/Filesystem functions Operating System: Windows XP Professional PHP Version: 5.2.5 -Assigned To: +Assigned To: helly Previous Comments: ------------------------------------------------------------------------ [2007-12-27 19:40:19] 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: ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43692&edit=1

« previous php.bugs (#120991) next »