From: jdentel91 at comcast dot net Operating system: Apache PHP version: 4.4.4 PHP Bug Type: Unknown/Other Function Bug description: Highlight file clumps large amounts of str_replace() together.
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 bug report at http://bugs.php.net/?id=39226&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39226&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39226&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39226&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39226&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39226&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39226&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39226&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39226&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39226&r=support Expected behavior: http://bugs.php.net/fix.php?id=39226&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39226&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39226&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39226&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39226&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39226&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39226&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39226&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39226&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39226&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39226&r=mysqlcfg
