ID:               35359
 User updated by:  junggle at centrum dot cz
 Reported By:      junggle at centrum dot cz
 Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: linux
 PHP Version:      4.4.1
 New Comment:

thanx sniper,
i didn't know about this info.

php manual says:
"everything outside of a pair of opening and closing tags is ignored by
the PHP parser"

and

"when PHP hits the closing tag, it simply starts outputting whatever it
finds until it hits another opening tag"


i also tried putting a space after the closing tag but php parser eats
it too.

is there any way to turn this "feature" off? ;)
i really need php to only parse php tags and keep the rest intact.

thanks for your help.
-jj


Previous Comments:
------------------------------------------------------------------------

[2005-11-24 09:21:45] [EMAIL PROTECTED]

FAQ:

http://www.php.net/manual/en/faq.using.php#faq.using.newlines


------------------------------------------------------------------------

[2005-11-24 06:25:57] junggle at centrum dot cz

Description:
------------
the php parser eats new line character and/or any whitespace characters
after closing tag ( ?> )

tested on linux php4.3.10
tested on win32 php5.0.4

sorry if this has been documented, i searched but didn't find
anything related.

-jj

Reproduce code:
---------------
line <?php?>
line

Expected result:
----------------
line
line

Actual result:
--------------
line line


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35359&edit=1

Reply via email to