For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > September 2004 > object calls fail after upgrade to 2.6.4









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author object calls fail after upgrade to 2.6.4
Fouzia Benzebouchi

2004-09-09, 8:57 am

After upgrading from 2.6.3 to 2.6.4

{ $obj->math(3.5) }

fails
Hans

2004-09-09, 8:57 am

On Thu, 9 Sep 2004, Fouzia Benzebouchi wrote:

> After upgrading from 2.6.3 to 2.6.4
>
> { $obj->math(3.5) }
>
> fails


I 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com