Re: [SMARTY-DEV] Re: [SMARTY]Re:[SMARTY-DEV]$smarty.session.object doesn't work in 2.5.0
| From: | Andrei Zmievski | Date: | Wed, 16 Apr 2003 12:33:20 +0000 |
| Subject: | Re: [SMARTY-DEV] Re: [SMARTY]Re:[SMARTY-DEV]$smarty.session.object doesn't work in 2.5.0 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1189@lists.php.net to get a copy of this message | ||
On Tue, 15 Apr 2003, messju mohr wrote:
> reference-counting is used internally by php for garbage-collection,
> AFAIK, but not visible to the application-programmer. but any
> assignment implies a copy of the data.
>
> try sth. like this:
>
> 1: $a = array('a');
> 2: $b = $a;
> 3: $a[] = 'b';
>
>
> if a reference was assigned in line 2, then $b would be "array('a',
> 'b')"
> since it references the same entity as $a. but since a copy is done in line
> 2, $a is changed in line 3, but $b is not.
False, try again.
-Andrei http://www.gravitonic.com/
"The time from now until the completion
of the project tends to become constant." -- Douglas Hartree