Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82561 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75448 invoked from network); 12 Feb 2015 21:43:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2015 21:43:56 -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.192.171 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.171 mail-pd0-f171.google.com Received: from [209.85.192.171] ([209.85.192.171:40365] helo=mail-pd0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/22-61903-B9E1DD45 for ; Thu, 12 Feb 2015 16:43:56 -0500 Received: by pdev10 with SMTP id v10so14702751pde.7 for ; Thu, 12 Feb 2015 13:43:53 -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=AsNpWTuo4w1o2kZb3XFHtHrjGOoeATgfc2JwgLbV7ac=; b=MOCiGcsVo29eUSkSQp5HngyDQaq2o4TQSJnkzKpJO/TjMYd7/68tVkDu3fby7/4U20 FT5S91LS3VFrJlcNgy/lINveLBQ4klGrpq5D7SiRIxS7JcBc0DDi7H+noR/wvbkRXfY9 nteqCmqagzZZfcfMkL0WfZO8Y8iK9KJcLzkGvOm+c8GTgt8zcs/gse6LUCoTCAQ0MSSG 9j56IbfcQDokyuTfAnowGCfwZB5gy45SB0UUksgLn35uDWY2zrgztPYnjPlnWUeCxLRC 1J7sj+0UOycDA3IWnUnXJR4XCjLPt/mg8yZjYEWs64SnbFmwWIkD0cASMg/CAadQQwbM FCNA== X-Received: by 10.66.65.138 with SMTP id x10mr9980087pas.74.1423777433147; Thu, 12 Feb 2015 13:43:53 -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 sl5sm4661831pbc.45.2015.02.12.13.43.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 13:43:52 -0800 (PST) Message-ID: <54DD1E93.1020604@gmail.com> Date: Thu, 12 Feb 2015 13:43:47 -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 CC: PHP internals References: <54DD1BB1.1090501@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! > It was always an E_STRICT error to call a non-static method statically > (as usual, not counting scoped calls) and since PHP 5.6 it was > E_DEPRECATED in the most common case. I don't see why we would suddenly > want to go back on this and make it work without any warnings. The reason why is simple - it works, it doesn't produce any bad behavior, it's clear what it does, so why produce warnings that are essentially useless to the user as they don't warn them about any potential problem? Unless, of course, I'm missing some potential problem - please point it out then. But "we've always done it this way" is not particularly good argument in this case - we did many things one way and then changed and started doing it a better way. -- Stas Malyshev smalyshev@gmail.com