#39226 [Opn->Fbk]: Highlight file clumps large amounts of str_replace() together.
| From: | tony2001@php.net | Date: | Sat, 21 Oct 2006 21:56:05 +0000 |
| Subject: | #39226 [Opn->Fbk]: Highlight file clumps large amounts of str_replace() together. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103858@lists.php.net to get a copy of this message | ||
ID: 39226
Updated by: tony2001@php.net
Reported By: jdentel91 at comcast dot net
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Apache
PHP Version: 4.4.2
New Comment:
I don't see any problems there, every str_replace() is on the separate
line. Fix your browser?
Previous Comments:
------------------------------------------------------------------------
[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