PHP :: Bug #29607 :: highlight_file producing incorrect output

Bug #29607 highlight_file producing incorrect output
Submitted: 2004-08-10 23:25 UTC Modified: 2005-10-13 19:18 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: phpbugrep200408 at pgregg dot com Assigned: iliaa (profile)
Status: Closed Package: Strings related
PHP Version: 5CVS-2005-09-15 (snap) OS: *
Private report: No CVE-ID: None

 [2004-08-10 23:25 UTC] phpbugrep200408 at pgregg dot com

Description:
------------
I found an error in how application/x-httpd-php-source produces its output.

The following example shows this in operation:

Raw file: http://www.pgregg.com/code/sprintf_heredoc.txt
phps ver: http://www.pgregg.com/code/sprintf_heredoc.phps

Both the txt and phps filenames are symlinks to the .php file.

Normally, a missing newline would be nothing to write home about, but in this instance it breaks the functionality of the script.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2004-08-12 00:38 UTC] iliaa@php.net

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2005-09-15 02:30 UTC] phpbugrep200408 at pgregg dot com

Reopening this bug as it has resurfaced.
Confirmed to be in 5.1b2 and 5.1RC1

 [2005-09-15 14:11 UTC] sniper@php.net

Ilia, you fixed this last time, so you propably know where to look for the bug :)

 [2005-09-21 12:08 UTC] phpbugrep200408 at pgregg dot com

Just additional info.
Related bug - same issue: http://bugs.php.net/bug.php?id=31371

Ilia keeps fixing this and it keeps getting broken again from PHP4 through to current version - I'd be slapping someone's head by now ;)

 [2005-10-13 19:18 UTC] iliaa@php.net

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Works fine in latest CVS for both examples shown.