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

From: Date: Fri, 02 Aug 2002 20:47:27 +0000
Subject: Re: Sv: Re: [SMARTY] assign_by_ref() and append_by_ref()
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5557@lists.php.net to get a copy of this message
That was the thinking, pass-by-reference at call time may cause more problems later. PHP 5.0 will fix it implicitly, so these are basically work around functions... unless someone knows of a better way to handle it? Good input, keep it coming :-) Monte anders.janson@mailbox.swipnet.se wrote:
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 -------------------------------------------------
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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