Re: fatal static call in php 6.0?
| From: | Christian Schneider | Date: | Thu, 25 May 2006 13:42:35 +0000 |
| Subject: | Re: fatal static call in php 6.0? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23652@lists.php.net to get a copy of this message | ||
Jasper Bryant-Greene wrote:
Christian Schneider wrote:self:: does not exist in PHP 4. So $this is probably used by some people to avoid <classname>:: which is ugly. While this might not be the best reason to do it it is still a real world fact. - ChrisPS: There are no plans to make non-static calls to static methods illegal, right?What is the point in that? What advantage do you get using $this->someMethodName() [non-static call] over self::someMethodName() [static call]?