From:             joel at sitemasters dot be
Operating system: redhat Fedora
PHP version:      4.3.8
PHP Bug Type:     Output Control
Bug description:  Highlight output bug

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 bug report at http://bugs.php.net/?id=29693&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29693&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29693&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29693&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29693&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29693&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29693&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29693&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29693&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29693&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29693&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29693&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29693&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29693&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29693&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29693&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29693&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29693&r=float

Reply via email to