[PHP-DEV] Unexpected behavior for ::

2011-12-12 Thread Bogdan Bezuz
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'; public function f2() { A::f1(); } } $b = new B(); $b-f2();

Re: [PHP-DEV] Unexpected behavior for ::

2011-12-12 Thread Bogdan Bezuz
last year and, even if i was aware that it is possible to call non-static methods in a static way, i didn't expect this to work. On 12/12/2011 16:12, Etienne Kneuss wrote: Hi, On Mon, Dec 12, 2011 at 14:35, Bogdan Bezuz bogdan.be...@emag.ro wrote: Hello