#29693 [Opn->Csd]: Highlight output bug

From: Date: Fri, 01 Oct 2004 08:11:40 +0000
Subject: #29693 [Opn->Csd]: Highlight output bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66978@lists.php.net to get a copy of this message
ID: 29693 Updated by: sniper@php.net Reported By: joel at sitemasters dot be -Status: Open +Status: Closed Bug Type: Output Control Operating System: redhat Fedora PHP Version: 4.3.8 New Comment: Seems to work fine with latest CVS snapshot. Previous Comments: ------------------------------------------------------------------------ [2004-08-16 03:07:28] joel at sitemasters dot be Description: ------------ Hello, When I try to highlight some source code, the output is sometimes blue (#0000BB) when it has to be black. Reproduce code: --------------- <?php $string = '<?php echo "test"; ?> blaa blabla ? die, test test'; echo highlight_string ($string,1); ?> Expected result: ---------------- in HTML source: <code><font color="#000000"> <font color="#0000BB">&lt;?php </font><font color="#007700">echo </font><font color="#DD0000">"test"</font><font color="#007700">; </font><font color="#0000BB">?&gt;</font> blaa blabla ? die, test test</font> </code> Actual result: -------------- in HTML source: <code><font color="#000000"> <font color="#0000BB">&lt;?php echo </font><font color="#DD0000">"test"</font><font color="#0000BB">; ?&gt; blaa blabla ? die, test test</font> </font> </code> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29693&edit=1

« previous php.bugs (#66978) next »