php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29693 Highlight output bug
Submitted: 2004-08-16 03:07 UTC Modified: 2004-10-01 10:11 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: joel at sitemasters dot be Assigned:
Status: Closed Package: Output Control
PHP Version: 4.3.8 OS: redhat Fedora
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joel at sitemasters dot be
New email:
PHP Version: OS:

 

 [2004-08-16 03:07 UTC] 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>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-01 10:11 UTC] sniper@php.net
Seems to work fine with latest CVS snapshot.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 20:01:28 2024 UTC