Re: Fwd: Re: [SMARTY-DEV] mixing of asign() and assign_by_ref() overwrites external vars

From: Date: Fri, 04 Jun 2004 14:04:24 +0000
Subject: Re: Fwd: Re: [SMARTY-DEV] mixing of asign() and assign_by_ref() overwrites external vars
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2389@lists.php.net to get a copy of this message
--- Sebastian Mendel <lists@sebastianmendel.de> wrote: > Boots schrieb: > > >>$testvar = true; > >>$smarty = new Smarty; > >> > >>$smarty->assign_by_ref('testvar', $testvar); > >> > >>// bug? > >>var_dump($testvar); // prints: (bool) true > >>$smarty->assign('testvar', false); > >>var_dump($testvar); // prints: (bool) false > > > >What do you think should happen? You are changing a by-reference > >value > > i expect if i use appand() that the reference is unset by smarty, > cause > i dont think that any body wants to set an external var this way! I suspect you don't really want to use append_by_ref then. xo boots __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/

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