Re: fatal static call in php 6.0?
| From: | Edin Kadribasic | Date: | Thu, 25 May 2006 18:06:28 +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-23665@lists.php.net to get a copy of this message | ||
Jasper Bryant-Greene wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Christian Schneider wrote:You don't need to create an object to make a static call. MyClass::MyFunc() works without objects, which is much faster than creating an instance and then invoking a method on it. EdinPS: 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]?