Re: [SMARTY-DEV] Re: [SMARTY]Re:[SMARTY-DEV]$smarty.session.object doesn't work in 2.5.0

From: Date: Wed, 16 Apr 2003 12:49:38 +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-1191@lists.php.net to get a copy of this message
On Wed, Apr 16, 2003 at 08:33:20AM -0400, Andrei Zmievski wrote: > 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. yes, of course. i think i corrected myself, as i agreed, that copy-on-write is done. > -Andrei > http://www.gravitonic.com/ > > "The time from now until the completion > of the project tends to become constant." -- Douglas Hartree

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