Re: Re: Bug with static property access
| From: | Dan Birken | Date: | Wed, 05 Oct 2011 18:18:01 +0000 |
| Subject: | Re: Re: Bug with static property access | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55703@lists.php.net to get a copy of this message | ||
This does seem strange. To me the error message looks fine, but it is weird
that "MethodOne" works while "MethodTwo" doesn't. Seems like both should
fail in a perfect world. However, this seems like a situation where bad
code is tickling some weird corner case in PHP, not a situation where PHP is
doing anything wrong.
-Dan
On Tue, Oct 4, 2011 at 11:56 PM, Chris Stockton
<chrisstocktonaz@gmail.com>wrote:
> Hello,
>
> On Tue, Oct 4, 2011 at 11:28 PM, Christian Kaps
> <christian.kaps@mohiva.com> wrote:
> >
> >
> > It's available since PHP 5.3. This feature is called "late static
> binding".
> >
>
> Before anyone else responds to my post, please read the entire message!
>
> It's simple really, the error message is odd and misleading for the
> example code I gave.
>
> In addition I pointed out later in the thread that LSB is not
> supported for class constants, something that could perhaps be added,
> although it is likely disabled as a (good) design decision, I could
> see use cases where it would be useful.
>
> Thanks,
>
> -Chris
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>