Bug #3395 [NEW]: Placing of a new line after ?> will trigger headers to be send unnecessarily
| From: | oracle dot shinoda at gmail dot com | Date: | Mon, 07 Feb 2005 20:15:32 +0000 |
| Subject: | Bug #3395 [NEW]: Placing of a new line after ?> will trigger headers to be send unnecessarily | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5515@lists.php.net to get a copy of this message | ||
From: oracle dot shinoda at gmail dot com
Operating system: Irrelevant
PHP version: Irrelevant
Package: Documentation
Bug Type: Bug
Bug description: Placing of a new line after ?> will trigger headers to be send unnecessarily
Description:
------------
On the coding standards page:
2) There should be one line feed after the closing PHP tag (?>). This
means that when the cursor is at the very end of the file, it should be
one line below the closing PHP tag.
This will trigger the headers to be send if the file is included, and this
may not be expected or required.
There should be no newline before or after the PHP code - every file
should start with <?php and end with ?>
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=3395&edit=1
--