|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-07 08:22 UTC] derick@php.net
[2004-04-07 11:11 UTC] mr dot heat at gmx dot de
[2004-04-07 11:21 UTC] fb at fbeyer dot com
[2004-04-14 09:13 UTC] fb at fbeyer dot com
[2004-04-26 00:25 UTC] sniper@php.net
[2004-04-26 00:43 UTC] tomsommer@php.net
[2004-04-26 09:57 UTC] mr dot heat at gmx dot de
[2004-04-27 06:21 UTC] helgi at trance dot is
[2004-04-29 23:06 UTC] sniper@php.net
[2004-05-05 22:29 UTC] sniper@php.net
[2004-07-11 06:56 UTC] email at dalegroup dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 07:00:01 2025 UTC |
Description: ------------ highlight_string() produces strange random results (random means, I reload the page and get one of two different results). Sometimes the highlighted string starts in HTML mode (as expected), sometimes it starts in PHP mode (similar to eval()). The effect is, the whole highlighted string becomes blue. In "foo <?php bar(); ?>" for example "foo" becomes blue instead of black. Reproduce code: --------------- <?highlight_string("Text")?> Or check http://phpcenter.de/~thiemo/bug.php and reload the page sometimes. The script running there is: <?=htmlspecialchars(highlight_string("Text", true))?> Expected result: ---------------- <code><font color="#000000"> Text</font> </code> Actual result: -------------- Sometimes: <code><font color="#000000"> Text</font> </code> and sometimes (just reload the page sometimes without any change): <code><font color="#000000"> <font color="#0000BB">Text</font> </font> </code>