#39226 [Fbk->Opn]: Highlight file clumps large amounts of str_replace() together.
| From: | jdentel91 at comcast dot net | Date: | Sat, 21 Oct 2006 22:11:49 +0000 |
| Subject: | #39226 [Fbk->Opn]: Highlight file clumps large amounts of str_replace() together. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103861@lists.php.net to get a copy of this message | ||
ID: 39226
User updated by: jdentel91 at comcast dot net
Reported By: jdentel91 at comcast dot net
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: Apache
PHP Version: 4.4.2
New Comment:
Microsoft IE v5 For Mac did the same.
Firefox 1.5.0.3 (Mac version) did the same.
Those are the only two browsers, other than Safari, that I
have. They have the same problems.
Previous Comments:
------------------------------------------------------------------------
[2006-10-21 22:08:04] tony2001@php.net
Yes, please try an other browser first.
------------------------------------------------------------------------
[2006-10-21 22:02:36] jdentel91 at comcast dot net
I cleared my cache and refreshed. There was no change. I use
Safari v2.0.4 on a Mac OS X 10.4.8
It might be browser specific...
------------------------------------------------------------------------
[2006-10-21 21:56:05] tony2001@php.net
I don't see any problems there, every str_replace() is on the separate
line. Fix your browser?
------------------------------------------------------------------------
[2006-10-21 21:52:30] jdentel91 at comcast dot net
Version
------------------------------------------------------------------------
[2006-10-21 21:49:47] jdentel91 at comcast dot net
Description:
------------
I tried to use highlight_file() to highlight a file that
includes a lot of str_replace(). It has place many of them
into one, with two of the first value, the second value is
only one, and the third is the same for them all. This
disrupts the displaying of the code.
Reproduce code:
---------------
http://www.chaoticscripters.com/class.php
Expected result:
----------------
The code above is the problem. It is displaying the file with
129 lines of $txt = str_replace('a', '&a;', $text); about half
of them placed together so it has 2 lines in one.
Actual result:
--------------
Look at the URL for the result.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39226&edit=1