Bug #12036 Updated: Error compiling if there is blank line before <?php

From: Date: Wed, 11 Jul 2001 07:55:29 +0000
Subject: Bug #12036 Updated: Error compiling if there is blank line before <?php
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-59660@lists.php.net to get a copy of this message
ID: 12036 Updated by: zak Reported By: jimmi@sancerta.com Old Status: Open Status: Bogus Bug Type: *Compile Issues Operating System: Red Hat Linux 7 PHP Version: 4.0.4 New Comment: The output of *any* content to the browser causes the headers to be sent. After the headers have been sent, functions that send headers (like session_start() or header()) will fail. Previous Comments: ------------------------------------------------------------------------ [2001-07-11 03:36:12] jimmi@sancerta.com Hi, Do you know that if we have a blank line in top of code (before <?php) php can't process that code ? OK.. this's the code sample: 1. First lets write a code like this ----------------------- <?php print "bla..bla..."; ?> ----------------------- and of course it will running well 2. Lets add one blank line in the first line ----------------------- <?php print "bla..bla..."; ?> ----------------------- And this one will running well too 3. Lets add session feature ----------------------- <?php session_start(); print "bla..bla.."; ?> ----------------------- Ops.. we got an error here... !!! I'm not sure my php version, maybe php4.0.1... i don't know... so i'm sorry if this problem has been fixed in recent version Best Regards Jimmi A. Kembaren ------------------------------------------------------------------------ ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=12036&edit=1

« previous php.dev (#59660) next »