comment will be outputed in last line
| Bug #36513 | comment will be outputed in last line | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2006-02-24 14:19 UTC | Modified: | 2006-04-13 13:52 UTC |
|
||||||||||
| From: | bate@php.net | Assigned: | dmitry (profile) | |||||||||||
| Status: | Closed | Package: | Scripting Engine problem | |||||||||||
| PHP Version: | 5CVS-2006-02-24 (snap) | OS: | * | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2006-02-24 14:19 UTC] bate@php.net
Description: ------------ If i have a php file with no ending ?> no newline at the end and the last line is a comment like this //} the comment "//}" will be printed to the output. this happens just with <? //} no chars behind } and no newline this bug occurs with php cli too. php -r '//}' outputs //} Reproduce code: --------------- <?//} Expected result: ---------------- empty output Actual result: -------------- //}
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-02-24 22:10 UTC] bate@php.net
[2006-04-11 11:40 UTC] sniper@php.net
[2006-04-12 11:07 UTC] tony2001@php.net
[2006-04-13 13:52 UTC] dmitry@php.net