Re: [SMARTY-DEV] Re: [SMARTY] Re: object calls fail after upgrade to 2.6.4

From: Date: Sat, 11 Sep 2004 20:29:44 +0000
Subject: Re: [SMARTY-DEV] Re: [SMARTY] Re: object calls fail after upgrade to 2.6.4
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2566@lists.php.net to get a copy of this message
I don't think this syntax worked in 2.6.3 either. If this is the only failure, I think I'll get a patch release out with the current CVS. Monte Hans_JXrgen_von_Lengerke wrote:
Hi Monte,
Give the CVS version another try.
Much better now, but I have still found one that doesn't work (sorry dude! I almost feel bad about it :-) {$obj->six()+$obj->six()} I have extended the test suite. Please find the relevant files attached. The above failing case is included. Also, I have renamed templates/assign_obj.tpl to templates/parse_obj_meth.tpl (I know, you have already comitted the other file, but the new name is more appropriate). There is also a new test template, templates/parse_math.tpl, and a new test in test_cases.php testing it. Hans !DSPAM:4142b90a243681816769874! ------------------------------------------------------------------------ {foreach name=loop from=$items item=i}
               {$smarty.foreach.loop.iteration+2}
               {$smarty.foreach.loop.iteration+$flt}
               {$smarty.foreach.loop.iteration+$obj->six()}
               {$smarty.foreach.loop.iteration+$obj->ten}
{/foreach}
               {$obj->ten+$flt}
               {$obj->ten*$flt}
               {$obj->six()+$obj->six()}
               {$obj->six()+$obj->ten}
               {$obj->ten+$obj->ten}
               {$obj->ten+$obj->six()}
               {$flt+$obj->six()}
               {$obj->six()+$flt}
               {$items.0+$obj->six()}
               {$obj->six()+$items.0}
!DSPAM:4142b90a243681816769874! ------------------------------------------------------------------------
               {$obj->meth($foo, 2.5)}
               {$obj->meth(2.5, $foo)}
               {$obj->meth(2.5)}
               {$obj->meth($obj->val, "foo")}
               {$obj->meth("foo", $obj->val)}
               {$obj->meth("foo", $foo)}
               {$obj->meth($obj->arr.one, 2)}
               {$obj->meth($obj->meth("foo", $foo))}
!DSPAM:4142b90a243681816769874!


« previous php.smarty.dev (#2566) next »