Bug #3395 [Opn->Bgs]: Placing of a new line after ?> will trigger headers to be send unnecessarily

From: Date: Mon, 07 Feb 2005 22:52:56 +0000
Subject: Bug #3395 [Opn->Bgs]: Placing of a new line after ?> will trigger headers to be send unnecessarily
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5516@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=3395&edit=1 ID: 3395 Updated by: danielc@analysisandsolutions.com Reported By: oracle dot shinoda at gmail dot com -Status: Open +Status: Bogus Type: Bug Package: Documentation Operating System: Irrelevant PHP Version: Irrelevant -Assigned To: +Assigned To: danielc New Comment: You're misunderstanding the situation. Take a look pear/DB/DB.php. It contains one LF after the closing ?>. Now, include it and then send a cookie. It works fine. Previous Comments: ------------------------------------------------------------------------ [2005-02-07 15:15:32] oracle dot shinoda at gmail dot com 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 this bug report at http://pear.php.net/bugs/bug.php?id=3395&edit=1

« previous php.pear.doc (#5516) next »