Re: Class::__construct() vs. $this->__construct()
| From: | Nikolas 'Atrus' Coukouma | Date: | Thu, 31 Mar 2005 00:26:40 +0000 |
| Subject: | Re: Class::__construct() vs. $this->__construct() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37012@lists.php.net to get a copy of this message | ||
Nikolas 'Atrus' Coukouma wrote:
This merits some clarification. The example does, in fact, work in PHP5. Using $this in a static context does cause an error. However, PHP has this obsession with namespaces and having lots of them ... Er, more on-topic is the fact that :: is the scope resolution operator, not the "call in a static context" operator.
-Nikolas 'Atrus' Coukouma