Hello,
Thanks for the info, as pointed out by Sean Coates this is sort of
documented, I've submited a documentation (problem/)bug report.
https://bugs.php.net/bug.php?id=60499
E_STRICT was disabled since a large part of the application was
moved to php 5 only las
Hi,
On Mon, Dec 12, 2011 at 14:35, Bogdan Bezuz wrote:
> Hello,
> I'm not sure if this is the desired behavior and i don't want to submit a
> bogus bug report.
>
> class A
> {
> public function f1()
> {
> var_dump($this->_b);
> }
> }
>
> class B
> {
> public $_b = 'stuff';
>
>
> 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.b