Re: [SMARTY] bug: unable to modify header
| From: | messju mohr | Date: | Mon, 03 Mar 2003 18:55:11 +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-8346@lists.php.net to get a copy of this message | ||
On Mon, Mar 03, 2003 at 07:24:39PM +0100, Ronan PAUL wrote:
> I can't send any header (including sending cookie) after the smarty class
> has been included.
>
> It seems that there is an empty line at the very bottom of the
> Smarty.class.php file (right after the ?>) which causes an output and
> prevents any header modification..
>
> I looked at the cvs repository and it seems that this empty line is still
> here.
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 "?>"
? i think only *very very* old versions of php do print this
character.
> Removing it bring things back in order. I could not find any reason for
> this being the expected behavior, so I guess it is a bug.
>
> Ronan