Re: [SMARTY] bug: unable to modify header

From: Date: Tue, 04 Mar 2003 00:42:09 +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-8362@lists.php.net to get a copy of this message
On Tue, Mar 04, 2003 at 12:06:59AM +0100, Ronan PAUL wrote: > >i don't have an empty line at the end of Smarty.class.php in my latest > >checkout. do you mean the trailing newline-character right after "?>" > Yes, that's it. > > >? i think only *very very* old versions of php do print this > >character. > If you say so... Do you suggest I try to teach my very old 4.3.0 so that it > does not print this empty line ? :-D no, i meant versions far beyond the ones, that support smarty. version 3.x and maybe 4.0.2 or so :) 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. i have turned output-buffering off, and sent some headers after including such files. no errors. 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 ??

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