Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82580 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38933 invoked from network); 13 Feb 2015 05:25:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2015 05:25:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.52 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.52 mail-pa0-f52.google.com Received: from [209.85.220.52] ([209.85.220.52:48396] helo=mail-pa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/72-23345-1BA8DD45 for ; Fri, 13 Feb 2015 00:25:06 -0500 Received: by mail-pa0-f52.google.com with SMTP id ey11so16424784pad.11 for ; Thu, 12 Feb 2015 21:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=mORIBhhkjOE+nV+Yl3Zl3Pb8l+E41VUkZXc3H2UY9vw=; b=ExtfU/TcdTkXN9lWY4MO2Gz4QfryIKgUCRxjNKqEYMQDcDKItPUpuXQ5b6lYadEAMT rdo8wVUx3xwhw3sLnCfIbUiCTFY8c3I8wiDBGOJ8KhPA107qG22RoM9lQs/kUJIvPgu2 1xAmrzRB9h/wj8rK40b+OjhoZk08vPWZF0TwrdUMnR+bkBE/FB5kM4n+f0jVZ9zKZD7i /ZIlcheOI4yMTgWe76nixVpnPxMLqHntklW43tYeFJ5kMhYHISx+5JrZgYwSxUCz2G9D BZUCIrL7tEHTCGNvy/XL6X35dnZYaiCYWc+eHvAp3BP5KO+bD1rdBG5/6G5Zo4H1mX84 VqhQ== X-Received: by 10.70.128.231 with SMTP id nr7mr12539006pdb.116.1423805103265; Thu, 12 Feb 2015 21:25:03 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id dg5sm5339944pbb.67.2015.02.12.21.25.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 21:25:02 -0800 (PST) Message-ID: <54DD8AA9.3040808@gmail.com> Date: Thu, 12 Feb 2015 21:24:57 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Marc Bennewitz , internals@lists.php.net References: <54DD1BB1.1090501@gmail.com> <54DD815F.70504@mabe.berlin> In-Reply-To: <54DD815F.70504@mabe.berlin> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Remove $this from incompatible context From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Such code will break, not in the first place but later on! Later on when? > You propose that every instance method not using the variable $this > internally will be magically a static method and can never ever be The difference between static method and non-static method is pretty much this - the former can't use $this. > changed to use $this without an bc break. I don't think you use "bc break" in a meaning it is usually used. Usually, "bc break" means the user code does not change, but the language or environment changes and code that worked before doesn't work anymore. That's bad. But you seem to mean that if the user changes the code to do a different thing than it did before, the code may not be correct anymore. That's only natural. -- Stas Malyshev smalyshev@gmail.com