Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19392 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72557 invoked by uid 1010); 4 Oct 2005 13:19:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72541 invoked from network); 4 Oct 2005 13:19:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2005 13:19:12 -0000 X-Host-Fingerprint: 160.9.128.16 dns1.lmu.ac.uk Received: from ([160.9.128.16:30848] helo=mrelay-a.lmu.ac.uk) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 7F/0A-54476-F4182434 for ; Tue, 04 Oct 2005 09:19:11 -0400 Received: from localhost.lmu.ac.uk ([127.0.0.1] helo=localhost) by mrelay-a.lmu.ac.uk with esmtp (Exim 4.43) id 1EMmfz-0004lG-4b; Tue, 04 Oct 2005 14:17:47 +0100 Received: from mrelay-a.lmu.ac.uk ([127.0.0.1]) by localhost (mrelay-a [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17054-04; Tue, 4 Oct 2005 14:17:44 +0100 (BST) Received: from leedsmet-exch1.leedsmet.ac.uk ([160.9.35.117]) by mrelay-a.lmu.ac.uk with esmtp (Exim 4.43) id 1EMmfX-0004kY-7r; Tue, 04 Oct 2005 14:17:19 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message Date: Tue, 4 Oct 2005 14:17:23 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] $ref =& $this; Thread-Index: AcXIKFwcyhMT4V5pRgyJ0rJaLGGkgwAvJFWQ To: "Robert Cummings" Cc: "PHP Developers Mailing List" X-Virus-Scanned: by McAfee at Leeds Metropolitan University Subject: RE: [PHP-DEV] $ref =& $this; From: M.Ford@leedsmet.ac.uk ("Ford, Mike") On 03 October 2005 15:41, Robert Cummings wrote: > 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 =3D &$this issue, only that $obj =3D $someObj is NOT the same as > $obj =3D &$someObj.=20 Yes, very true. I've mentioned before that I think PHP 5's object thingumm= ies should be referred to as "handles" (and I'm sure I actually saw this us= age in early versions of the PHP 5 or Zend Engine 2 proposals). Then, it's= much clearer that: $obj2 =3D $obj1 gives you a copy of the object handle, but: $obj2 =3D &$obj1 gives you a reference to the handle. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211=20 To view the terms under which this email is distributed, please go to http:= //disclaimer.leedsmet.ac.uk/email.htm