php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37704 carriage return suppression after closing tag
Submitted: 2006-06-05 18:40 UTC Modified: 2007-05-14 09:38 UTC
From: php at bouchery dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.1.4 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at bouchery dot com
New email:
PHP Version: OS:

 

 [2006-06-05 18:40 UTC] php at bouchery dot com
Description:
------------
After php closing tag, carriage returns are deleted.
If I add some text after the closing tag, it's OK.
It happen only if the carriage return is place just after the closing tag.

Reproduce code:
---------------
<?php echo 'Line 1' ?>
<?php echo 'Line 2' ?>

Expected result:
----------------
Line 1
Line 2

Actual result:
--------------
Line 1Line 2

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-05 19:09 UTC] tony2001@php.net
This is a feature and changing this would break tons of existing applications.
 [2006-06-05 19:21 UTC] php at bouchery dot com
Ok.
Is it writen in the documentation ?
 [2006-06-06 09:14 UTC] mgf@php.net
es, at http://www.php.net/language.basic-syntax.instruction-separation

However, it's *not* mentioned on the basic-syntax.phpmode page where the open/close tags are defined; this seems a little illogical, so I'm re-opening this as a documentation problem.
 [2007-05-14 09:38 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Fix #41281 - include comment about newline being absorbed by "end of php block".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Sep 12 20:00:01 2025 UTC