#39226 [Opn]: Highlight file clumps large amounts of str_replace() together.
| From: | jdentel91 at comcast dot net | Date: | Sat, 21 Oct 2006 21:52:31 +0000 |
| Subject: | #39226 [Opn]: Highlight file clumps large amounts of str_replace() together. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103856@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: Open
Bug Type: Unknown/Other Function
Operating System: Apache
-PHP Version: 4.4.4
+PHP Version: 4.4.2
New Comment:
Version
Previous Comments:
------------------------------------------------------------------------
[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