Re: [RFC] Remove calls with incompatible Context
| From: | Gustavo Lopes | Date: | Mon, 30 Jul 2012 20:13:37 +0000 |
| Subject: | Re: [RFC] Remove calls with incompatible Context | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61884@lists.php.net to get a copy of this message | ||
Em Mon, 30 Jul 2012 19:42:59 +0200, Will Fitch <willfitch@php.net> 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