Re: PEAR CS poll
| From: | Klaus Guenther | Date: | Fri, 08 Oct 2004 22:06:45 +0000 |
| Subject: | Re: PEAR CS poll | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33719@lists.php.net to get a copy of this message | ||
Stefan Walk wrote:
On Fri, Oct 08, 2004 at 11:51:32PM +0200, Klaus Guenther wrote:What's the difference? Isn't the php5 default to pass by reference? My understanding is that if you want to create a copy of an object in php5, you need to use the $obj->__clone(); method. Maybe I got it wrong. Or maybe they reverted to the old way. Dunno. KlausThis only is valid for php4. php5, of course, returns a reference by default. That said... 2) please :) And this one doesn't need to be added to the manual, as it will soon be outdated.It won't. $foo = $obj and $foo =& $obj are not the same, even in php5.