Re: HAHAHAHAHAHAHAHAHAHA!

From: Date: Thu, 15 Jun 2000 17:45:34 +0000
Subject: Re: HAHAHAHAHAHAHAHAHAHA!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1973@lists.php.net to get a copy of this message
Szii wrote: > > Okay, now this really takes it... > > To improve memory usage (I'm guessing), they imp'd a ref counting > scheme on objects. It's a good move...but the direct "=" operator > is a SET operator...or should be. It's NOT! It's a reference operator, > at least when dealing with classes! > HAHAHAHAHAHA! > class foo { // Useful things... function copy() { return $this; } } $foo1 = new foo; $foo2 = $foo1->copy(); I've had this problem as well, and the above seemed to solve it. James

« previous php.general (#1973) next »