Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56158 invoked by uid 1010); 3 Oct 2005 13:40:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56141 invoked from network); 3 Oct 2005 13:40:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2005 13:40:44 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:56354] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B2/88-54476-BD431434 for ; Mon, 03 Oct 2005 09:40:44 -0400 Received: from [192.168.1.3] (dslb-082-083-230-032.pools.arcor-ip.net [82.83.230.32]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 12F4735C37F; Mon, 3 Oct 2005 15:41:24 +0200 (CEST) Date: Mon, 3 Oct 2005 15:40:41 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <192263251.20051003154041@marcus-boerger.de> To: Christian Schneider Cc: internals@lists.php.net, Derick Rethans In-Reply-To: <43413474.90802@cschneid.com> References: <43413474.90802@cschneid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: $ref =& $this; From: helly@php.net (Marcus Boerger) Hello Christian, php 4 code is wrong in this and we don't want to support the errors forever. marcus Monday, October 3, 2005, 3:39:00 PM, you wrote: > Derick Rethans wrote: >> pointless - I would even go as far as disallowing passing $this by >> references to a function - where the reference has to be ignored again, > This would be needed to have something like > function setfoo(&$obj) > { > $obj->foo = 42; > } > [...] > $other->setfoo($this); > in a way which also works for PHP4. > a) I know that you now are going to bash me for mentioning PHP4 > b) No, I don't think this is very common or elegant > But disallowing it might break existing code, no? > - Chris Best regards, Marcus