Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61884 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94091 invoked from network); 30 Jul 2012 20:13:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2012 20:13:47 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:45960] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/45-00342-AFAE6105 for ; Mon, 30 Jul 2012 16:13:47 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 7C90F7000446; Mon, 30 Jul 2012 21:13:43 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id Y9HDesny5qqP; Mon, 30 Jul 2012 21:13:42 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp1.ist.utl.pt (Postfix) with ESMTP id A8AAF7000445; Mon, 30 Jul 2012 21:13:42 +0100 (WEST) Received: from damnation (unknown [IPv6:2001:470:94a2:4:2494:1723:b828:d7d9]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 5702D202250A; Mon, 30 Jul 2012 21:13:41 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Will Fitch" References: Date: Mon, 30 Jul 2012 22:13:37 +0200 Cc: "internals@lists.php.net" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: User-Agent: Opera Mail/12.50 (Linux) Subject: Re: [PHP-DEV] [RFC] Remove calls with incompatible Context From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") Em Mon, 30 Jul 2012 19:42:59 +0200, Will Fitch escreveu: > I think this is a good idea. I agree with the intention of throwing > E_DEPRECATED in 5.5, but what do you propose happen afterwards? Throw a > fatal error? I would just like to make "removing (in the next version)" > a little more definitive. > As much as I'd like to have an error at call site here, the most sensible option is to just have $this === null inside the callee, like when you do: class A { function foo() {} } A::foo(); // E_STRICT I'll update the RFC with this. -- Gustavo Lopes