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

From: Date: Fri, 29 Feb 2008 00:06:49 +0000
Subject: #43692 [Asn->Fbk]: HTML produced by an Exception of DirectoryIterator gets converted
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122790@lists.php.net to get a copy of this message
ID: 43692 Updated by: felipe@php.net Reported By: karol at babioch dot de -Status: Assigned +Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: Windows XP Professional PHP Version: 5.2.5 Assigned To: helly New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi 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 (#122790) next »