Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97548 invoked by uid 1010); 3 Oct 2005 14:39:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97532 invoked from network); 3 Oct 2005 14:39:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2005 14:39:22 -0000 X-Host-Fingerprint: 66.11.173.122 unknown Received: from ([66.11.173.122:16089] helo=interjinn.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 91/DD-54476-A9241434 for ; Mon, 03 Oct 2005 10:39:22 -0400 Received: from blobule.suds (blobule.suds [192.168.1.3]) by interjinn.com (Postfix) with ESMTP id 26A071435F3; Mon, 3 Oct 2005 10:39:18 -0400 (EDT) To: Derick Rethans Cc: Richard Mann , PHP Developers Mailing List In-Reply-To: References: <122233927.20051003152138@marcus-boerger.de> <20051003143244.8EC1.RICHARD.MANN@gg.com> Content-Type: text/plain Organization: InterJinn Message-ID: <1128350432.3955.64.camel@blobule.suds> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5-4mdk Date: Mon, 03 Oct 2005 10:40:33 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] $ref =& $this; From: robert@interjinn.com (Robert Cummings) On Mon, 2005-10-03 at 09:49, Derick Rethans wrote: > On Mon, 3 Oct 2005, Richard Mann wrote: > > > Hmmm.... I agree about the reassigning of $this, but not the passing of > > $this by ref. > > Why are you passing an object be reference? Never heard that in PHP 5 > objects are always references? Amazing how fast the assumption has become that passing object values in PHP5 is identical to passing the object by reference. It is not the same, there are subtle differences. Either way I'm not weighing in on the $ref = &$this issue, only that $obj = $someObj is NOT the same as $obj = &$someObj. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'