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

Apache dies when there are commented lines with {* and *}
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 -> General
View previous topic :: View next topic  
Author Message
gyunay
Smarty Rookie


Joined: 18 May 2015
Posts: 8

PostPosted: Fri May 22, 2015 8:14 am    Post subject: Reply with quote

Finally i can tell that i found the problem. It is related to the Apache Stack Size. It seems that on Windows OS the apache has less stack size than Linux. I found a fix in the internet:

<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>

This should be placed in the httpd.conf of the apache.

But this fixes one part of the problem. It seems that when the commented code is really long the stack size is not enough. Even for linux. I just made some test and i produced the same problem on Linux. It seems that the regular expressions for finding the comments fails when the commented code is really big. I did a test with 260 lines commented code. When it is 140 the apache doesn't crash Smile.

I hope this to help you to tune up the smarty to handle big comments.

Actually the comments are not problem because we can always remove them. But if the smarty fails with the comments i worry that it may fail with other things too. I hope this never happen.

Can you check again the comments problem with big commend (at least 300 lines) . Maybe you can find a better solution.

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


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

PostPosted: Sat May 23, 2015 5:30 pm    Post subject: Reply with quote

I just released 3.1.24.

All limits of comment section size have been removed.
Back to top
View user's profile Send private message
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 96

PostPosted: Sun May 24, 2015 8:50 am    Post subject: Reply with quote

U.Tews wrote:
I just released 3.1.24.

Hi Uwe
Did I miss something that official announced releases have been stopped with 3.1.21 (see http://www.smarty.net/) for non GitHubers?
Back to top
View user's profile Send private message
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 96

PostPosted: Sun May 24, 2015 8:55 am    Post subject: Reply with quote

Oh - I forgot to ask, if you could give a official note about purged/unused files with these newer versions, please. I dimly remember that you shuffled some files. Thanks.
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Sun May 24, 2015 12:58 pm    Post subject: Reply with quote

The versions 3.1.22 and 3.1.23 did not solve some problems completely and had some new ones.

So I decided not to put these versions on the WEB.

I currently can't modify the Smarty WEB myself. I asked Monte to announce the release, but it does look like that he is currently not available,


I think no files have been removed. There are a couple of additional ones as I splitted and rearranged code for a smaller foot print.
Back to top
View user's profile Send private message
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 96

PostPosted: Sun May 24, 2015 4:08 pm    Post subject: Reply with quote

Fine, thanks.

What about these two?
./libs/sysplugins/smarty_config_source.php
./libs/sysplugins/smarty_internal_config.php
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Sun May 24, 2015 5:28 pm    Post subject: Reply with quote

U are right. These 2 are gone.
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 -> General 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