|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Conisant Smarty n00b
Joined: 08 Dec 2009 Posts: 3
|
Posted: Tue Apr 27, 2010 10:54 am Post subject: fatal eval/include-error on large input |
|
|
Greetings,
I get an reproduceable fatal error from an exception when I eval or include large text content.
Its easy to reproduce, just use the following code:
{$content="a"|str_repeat:33324}
{include file="string:$content"}
or
{eval var=$content}
The error looks like that:
<b>Fatal error</b>: Uncaught exception 'Exception' with message 'Unexpected input at line1: a' in .../smarty/sysplugins/smarty_internal_templatelexer.php:192
Stack trace:
#0 .../smarty/sysplugins/smarty_internal_templatelexer.php(111): Smarty_Internal_Templatelexer->yylex1()
#1 .../smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(45): Smarty_Internal_Templatelexer->yylex()
#2 .../smarty/sysplugins/smarty_internal_templatecompilerbase.php(84): Smarty_Internal_SmartyTemplateCompiler->doCompile('aaaaaaaaaaaaaaa...')
#3 .../smarty/sysplugins/smarty_internal_template.php(259): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
#4 ...smarty/sysplugins/smarty_internal_templatelexer.php</b> on line <b>192</b>
I am using the beta 8 right now (was present in the others as well)
Greetings, Andrej Zieger |
|
Back to top |
|
|
|
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
|