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

smarty3 and caching with memcached
Goto page Previous  1, 2
 
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
redl
Smarty Rookie


Joined: 10 Jun 2015
Posts: 9

PostPosted: Mon Jun 15, 2015 11:58 am    Post subject: Reply with quote

U.Tews wrote:
I did not use str_split as it could result in a larger $arr1 array.


You also need to change this code:
Code:

        $content = substr($content, 8);


because "8 chars != 8 bytes" when dealing with a multi-byte encoded string
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Mon Jun 15, 2015 10:12 pm    Post subject: Reply with quote

The code has been changed to AnrDaemon's suggestion.
That does solve all problems.
Back to top
View user's profile Send private message
redl
Smarty Rookie


Joined: 10 Jun 2015
Posts: 9

PostPosted: Tue Jun 16, 2015 7:05 am    Post subject: Reply with quote

U.Tews wrote:
The code has been changed to AnrDaemon's suggestion.
That does solve all problems.


Fine. This is a very nice solution. Thanks to you and AnrDaemon
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
Goto page Previous  1, 2
Page 2 of 2

 
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