Re: forward compatibility "public" in 4.4
| From: | Rasmus Lerdorf | Date: | Wed, 15 Jun 2005 17:21:28 +0000 |
| Subject: | Re: forward compatibility "public" in 4.4 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16698@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
> Personally, I don't think there's a significant benefit to adding
> support for public. There are so many differences and new features that
> the gain of just being able to change "var" to "public" would be
> marginal at best.
>
> That said, I don't mind supporting if people think it will help. It's a
> tiny patch and doesn't break any serious API compatibility except for
> the downside of not being able to run PHP 4.4 code on PHP 4.3 (if it
> uses public), which probably defeats the purpose of supporting both PHP
> 4 and PHP 5.
>
> Again though, we can do it... It's no biggy.
What was the reasoning again for not having var be a synonym for public
in PHP5? It is a bit annoying that a simple PHP4 class using var throws
a notice in PHP5 when there is technically nothing wrong with it.
-Rasmus