Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71963 invoked from network); 12 Feb 2015 21:40:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2015 21:40:43 -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.45 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.45 mail-pa0-f45.google.com Received: from [209.85.220.45] ([209.85.220.45:36716] helo=mail-pa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/61-61903-9DD1DD45 for ; Thu, 12 Feb 2015 16:40:41 -0500 Received: by mail-pa0-f45.google.com with SMTP id rd3so7332740pab.4 for ; Thu, 12 Feb 2015 13:40:38 -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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=IP6uEXZIkFSTClW02r2QVmObHo6ZVD45essHE5mnwE4=; b=Qtx1M77pt1aUmZugZjwjRf90VcoaSD4jJ/34TZ1yWPVxMLvw962kLPrKngBzxxS8cf wP4liFYvOo+skwXy5iIxTXxgTeQqaMyiY+XLpSQuNDTbzbVvgL6BT3mYpoVC2GW6sdBo aNmdeCD4jfSdkfbUeVTNWX3FvUOgDeDXzLGZlz+uXDeLXoomMLRsoknlfDvZYqk1nlkF XnGxphhJYiKL7d+lnoALxI5r1DWWUXyRV920BDf46ByCeyP/KKe2bWuZxpSfXx0/FmBq lRxRUZsnXZlHsr8k+eV/ev+fT3e5+nL58qrvYj+BJQ5cedkAO4UEZUFsPDIpayPi/Hqj kq3A== X-Received: by 10.66.174.165 with SMTP id bt5mr9779026pac.53.1423777238316; Thu, 12 Feb 2015 13:40:38 -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 qj3sm4710498pac.31.2015.02.12.13.40.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 13:40:37 -0800 (PST) Message-ID: <54DD1DD1.4010103@gmail.com> Date: Thu, 12 Feb 2015 13:40:33 -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: Nikita Popov , Rowan Collins CC: PHP internals References: <54DCD8B7.40700@gmail.com> In-Reply-To: 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! > And yes, I'm pretty sure there is intent to remove this completely in the > future - this is just another leftover from PHP 4. The approach outlined > here only avoids dropping support in PHP 7 already (which the original > patch did for all practical purposes). Why btw remove it? OK, somebody did not mark the function as "static", but if it doesn't use $this, what's the difference? It certainly won't produce any undesirable behavior, so why not just let it work as if it was declared "static"? Is there any practical reason not to? -- Stas Malyshev smalyshev@gmail.com