Re: [SMARTY] Re: object calls fail after upgrade to 2.6.4
| From: | Monte Ohrt | Date: | Thu, 09 Sep 2004 14:04:11 +0000 |
| Subject: | Re: [SMARTY] Re: object calls fail after upgrade to 2.6.4 | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11787@lists.php.net to get a copy of this message | ||
objects as params to objects has never been supported:
{$obj->meth($foo->var))}
However, this is broken:
{$obj->(5,5)}
{$obj->(5,$foo)}
working on it...
Monte
hans wrote:
On Thu, 9 Sep 2004, Fouzia Benzebouchi wrote:After upgrading from 2.6.3 to 2.6.4 { $obj->math(3.5) } failsI can confirm this behaviour too. For example,$obj->meth(3) # works $obj->meth(3, 5) # does not work $obj->meth($x, 3) # works $obj->meth(2, $x) # does not work$obj->meth($foo->var) # does not work The failure message is always along the lines of: Fatal error: Smarty error: [in test.tpl line 1]: syntax error: unrecognized tag: $obj->metch(2, $x) (Smarty_Compiler.class.php, line 408) in /home/entw/hj/work/esixt_phpbase/lib/Smarty/Smarty.class.php on line 1083 Something with parsing arguments of object method calls is seriously broken. Hans