Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

smarty 3.1.7 - php parse error?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
maind
Smarty Rookie


Joined: 14 Dec 2011
Posts: 7

PostPosted: Fri Jan 20, 2012 2:30 pm    Post subject: smarty 3.1.7 - php parse error? Reply with quote

Hello!

I've successfully updated to smarty 3.1.7.
Site works fine, but my IDE found php parse error at /sysplugins/smarty_internal_templateparser.php - line 2302

>>
$this->_retvalue = new _smarty_text($this, self::escape_start_tag(�));
(in utf8)

>>
$this->_retvalue = new _smarty_text($this, self::escape_start_tag(ö));
(in ISO-8859-1)

So, I guess, it is just type mismatch?
Probably quotes are missing there?



Also, I'm very interested which encoding does smarty files using?
I was sure that utf-8.

Thanks.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Jan 20, 2012 2:55 pm    Post subject: Reply with quote

Thanks for bringing this up.

The problem was caused by a typo.

The Smarty source files don't use UTF-8 encoding.

The typo is now fixed in the SVN trunk version. It will be later included in 3.1.8
Back to top
View user's profile Send private message
maind
Smarty Rookie


Joined: 14 Dec 2011
Posts: 7

PostPosted: Fri Jan 20, 2012 2:58 pm    Post subject: Reply with quote

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP