Re: fatal static call in php 6.0?
| From: | Marcus Boerger | Date: | Thu, 25 May 2006 13:54:13 +0000 |
| Subject: | Re: fatal static call in php 6.0? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23653@lists.php.net to get a copy of this message | ||
Hello Christian,
Thursday, May 25, 2006, 3:39:02 PM, you wrote:
> Marcus Boerger wrote:
>> There is no way you can write heavy oo using code that supports PHP 4
>> and PHP 5.2 without a version check every here and there, so i don't see
> I'm not talking about heavy OO code. Just very basic one which static
> methods are used as sort-of namespaces. And that works perfectly well in
> PHP 4 and PHP 5. I'm just trying to point out that OO in PHP isn't all
> or nothing and the argument "if you don't need it, don't use it" has
> implications on how BC is treated.
> Requiring the static keyword with PHP 6 on the other hand means you get
> a compilation error with PHP 4.
There are no static methods in PHP 4.
Best regards,
Marcus