Re: Sv: Re: [SMARTY] assign_by_ref() and append_by_ref()

From: Date: Sat, 03 Aug 2002 15:44:08 +0000
Subject: Re: Sv: Re: [SMARTY] assign_by_ref() and append_by_ref()
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5576@lists.php.net to get a copy of this message
Basically because they are not compatible. assign($tpl_var, $value = NULL) assign_by_ref($tpl_var, &$value) You either pass by reference or you don't, they can't work the same (with PHP currently) Monte Rod Enke wrote:
Monte Ohrt wrote:
in PHP 5.0, assign() will work the way you expect it to, by reference implicitly. We may eventually deprecate the assign_by_ref() function once it is not needed. travis@dawnstar.org wrote:
Why not add a third parameter to assign() that tells assign() to either copy or pass by reference. You could default this new parameter to copy for backwards compatability. I'm new to PHP and Smarty, so don't laugh too hard if I'm way off base. - Rod


« previous php.smarty.general (#5576) next »