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

another merge_compiled_includes bug

 
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 -> Smarty 3
View previous topic :: View next topic  
Author Message
ilyalyu
Smarty Regular


Joined: 03 Nov 2009
Posts: 72

PostPosted: Sat Sep 17, 2011 7:53 am    Post subject: another merge_compiled_includes bug Reply with quote

Smarty 3.1
merge_compiled_includes = true

This bug appears in the following situation:

First script execution:
fetch template1.html that includes subtemplate.html
fetch template2.html that includes subtemplate.html
No errors

Second script execution:
fetch template2.html that includes subtemplate.html
Shows error (see bellow)

Also, function content_4e744fb47e92b is defined in first compiled file ...template1.html.php, but it is not defined in the second compiled file ...template2.html.php.

As a result, if you fetch second template without fetching first template this will cause error.

Code:
Fatal error: Call to undefined function content_4e744fb47e92b() in T:\HTDOCS\CMS\temp\compiled\default_DefaultFireBrick^512b1befbc6264c12f309406dced5e6adff2b4c8.custom.front.html.php on line 359
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Sun Sep 18, 2011 2:34 am    Post subject: Reply with quote

This bug ins now fixed in the SVN trunk
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 -> Smarty 3 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