Sv: Re: [SMARTY] assign_by_ref() and append_by_ref()
| From: | anders dot janson at mailbox dot swipnet dot se | Date: | Fri, 02 Aug 2002 20:10:08 +0000 |
| Subject: | Sv: Re: [SMARTY] assign_by_ref() and append_by_ref() | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5556@lists.php.net to get a copy of this message | ||
>
> Från: "Ferdinand Beyer" <fbeyer@clickhand.de>
> Datum: 2002/08/02 Fri PM 09:58:17 CEST
> Till: Monte Ohrt <monte@ispi.net>,
> smarty-general@lists.php.net
> Ämne: Re: [SMARTY] assign_by_ref() and append_by_ref()
>
> So whether assign() saves references or copies is controlled by
> whether it is called with '&' or not - whether the value is passed by
> reference or not.
Quote, posted by Bob Silva:
"That solution will work, but it relies on a deprecated feature of PHP and
its use is not suggested.
I would assume with PHP5 or even 4.3, the ini directive
allow_call_time_pass_reference will default to Off.
"
> IMO this is the most ellegant way to do it; assign_by_ref() is
> unnecessary, ugly and confusing.
>
IMO, you are very, very wrong ;-)
/Anders
-------------------------------------------------
WebMail från Tele2 http://www.tele2.se
-------------------------------------------------