Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19070 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31546 invoked by uid 1010); 17 Sep 2005 18:11:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31530 invoked from network); 17 Sep 2005 18:11:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Sep 2005 18:11:01 -0000 X-Host-Fingerprint: 65.19.190.98 procata.com Linux 2.4/2.6 Received: from ([65.19.190.98:55560] helo=procata.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D1/2E-43379-43C5C234 for ; Sat, 17 Sep 2005 14:11:00 -0400 Received: from 65.111.204.168 ([65.111.204.168]) by procata.com for ; Sat, 17 Sep 2005 11:10:51 -0700 Mime-Version: 1.0 (Apple Message framework v622) Content-Transfer-Encoding: 7bit Message-ID: Content-Type: text/plain; charset=US-ASCII; format=flowed To: PHP Developers Mailing List Date: Sat, 17 Sep 2005 14:11:10 -0400 X-Mailer: Apple Mail (2.622) Subject: Reference of $this in 5.1 From: jeff@procata.com (Jeff Moore) I'm running into a BC break between 5.1 and 5.0 & 4.x. It seems like some code in 5.1 to prevent re-assigning $this also prevents taking a reference of $this. The following bug report for this situation was marked Bogus: http://bugs.php.net/bug.php?id=34358 However, I would like to ask for an explanation of why $this->ref =& $this is a valid usage while $ref =& $this; is not. Thanks, Jeff Moore