#41281 [Bgs->Opn]: evaluating or including php content loses newlines
| From: | fantasticjamieburns at hotmail dot com | Date: | Fri, 04 May 2007 10:51:44 +0000 |
| Subject: | #41281 [Bgs->Opn]: evaluating or including php content loses newlines | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112233@lists.php.net to get a copy of this message | ||
ID: 41281
User updated by: fantasticjamieburns at hotmail dot com
Reported By: fantasticjamieburns at hotmail dot com
-Status: Bogus
+Status: Open
Bug Type: Unknown/Other Function
Operating System: Linux/Windows
PHP Version: 4.4.7
New Comment:
I have been developing with PHP since version 3.
I have read the manual many times.
The manual states:
"... when PHP hits the ?> closing tags, it simply starts outputting
whatever it finds until it hits another opening tag."
NOW...
As I have highlighted, PHP is not outputting everything after the
closing tag in the specific case where there is a newline immediately
after the closing tag.
So... either tha manual is wrong or the parser is broken.
Did you even bother to try the simple test case I gave?
Previous Comments:
------------------------------------------------------------------------
[2007-05-04 10:42:10] tony2001@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
------------------------------------------------------------------------
[2007-05-04 10:29:19] fantasticjamieburns at hotmail dot com
Description:
------------
Well when I eval() or include() the code below, a newline gets
truncated. Basically, whenerver an "end of php block" is the last thing
on a line, the parser steals a newline.
Reproduce code:
---------------
ONE
TWO<?php /* whatever */ ?>
THREE
Expected result:
----------------
ONE
TWO
THREE
Actual result:
--------------
ONE
TWOTHREE
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41281&edit=1