Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77898 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13961 invoked from network); 12 Oct 2014 09:22:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2014 09:22:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@tutteli.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@tutteli.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.78 as permitted sender) X-PHP-List-Original-Sender: php@tutteli.ch X-Host-Fingerprint: 80.74.154.78 ns73.kreativmedia.ch Linux 2.6 Received: from [80.74.154.78] ([80.74.154.78:58947] helo=hyperion.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/72-01239-1584A345 for ; Sun, 12 Oct 2014 05:22:25 -0400 Received: (qmail 20453 invoked from network); 12 Oct 2014 11:22:21 +0200 Received: from unknown (HELO RoLaptop) (80.66.46.208) by ns73.kreativmedia.ch with (AES128-SHA encrypted) SMTP; 12 Oct 2014 11:22:21 +0200 To: "'Tjerk Meesters'" Cc: "'PHP Internals'" References: <000901cfe5f7$c7acd7f0$570687d0$@tutteli.ch> <890063F8-F4F1-43CE-BE25-E5702DFDD87E@gmail.com> In-Reply-To: <890063F8-F4F1-43CE-BE25-E5702DFDD87E@gmail.com> Date: Sun, 12 Oct 2014 11:22:21 +0200 Message-ID: <001101cfe5fe$07417d20$15c47760$@tutteli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJ/jADYoyUHHk6yu+CbncGCbQ3FnQGFX3TsmsC4hoA= Content-Language: de-ch Subject: AW: [PHP-DEV] disallow non-static method calls with self/static in PHP 7 From: php@tutteli.ch ("Robert Stoll") > In your given example, $this is defined when A::bar() is called; interestingly, when this class is extended it will still only call > A::bar() as opposed to calling $this->bar(). Whether this is useful behaviour is irrelevant :) > Right, I completely forgot that. So calling it with self instead of $this actually could make sense. Cheers :)