Re: [SMARTY] bug: unable to modify header

From: Date: Tue, 04 Mar 2003 15:09:33 +0000
Subject: Re: [SMARTY] bug: unable to modify header
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8391@lists.php.net to get a copy of this message
There is no extra newline at the end of the Smarty.class.php file, at least not in CVS. On Tue, 2003-03-04 at 02:31, Ronan PAUL wrote: > >anyway: i just verified: 4.3.0 does not have any problems with files > >that have a new-line after the very last '?>' and before EOF. > It does on my system at least (Red Hat 7.2, Apache 1.3.xx, PHP 4.3.0, > mod_gzip, php accelerator, smarty 4.2.0). > > i have > >turned output-buffering off, and sent some headers after including > >such files. no errors. > You're lucky then (or most probably I am unlucky) > > >4.3.0 gives the file and line where output started in its "headers > >already sent"-error. does it really say it is the last line of > >Smarty.class.php ?? > The error was: Warning: Cannot modify header information - headers already > sent by (output started at /usr/local/lib/php/smarty/Smarty.class.php:2674) > > As written earlier, removing this empty line obviously solved my problem. I > am just trying to give you some feedback here. > So, knowing that this empty line is useless, you might consider deleting it > in case it could trouble some users. > > Regards, > > Ronan > > > _________________________________________________________________ > Jouez avec MSN Messenger et gagnez des voyages et des XBox ! > http://messenger.msn.fr/promo -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.general (#8391) next »