Re: Unexpected behavior for ::
| From: | Sean Coates | Date: | Mon, 12 Dec 2011 14:04:07 +0000 |
| Subject: | Re: Unexpected behavior for :: | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56887@lists.php.net to get a copy of this message | ||
> I'm not sure if this is the desired behavior and i don't want to submit a bogus bug
> report.
>
…
> At first i would expect an error since A was not instantiated, at most i would expect to return
> NULL but not 'stuff'.
> Is this a bug ?
This is explained here: http://php.net/language.oop5.basic#example-155
(the paragraph after this example, and in example #2)
S