Re: Remove $this from incompatible context
| From: | Stanislav Malyshev | Date: | Thu, 12 Feb 2015 21:40:33 +0000 |
| Subject: | Re: Remove $this from incompatible context | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82560@lists.php.net to get a copy of this message | ||
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