Re: [PHP-DEV] behaviour of static calls to regular methods

2004-06-22 Thread Andi Gutmans
Yeah for BC sake, but if you define the function's as static explicitly it won't work. At 01:54 PM 6/21/2004 +0200, Ard Biesheuvel wrote: Is the fact that the following code works intentional ? class S { function func() { A::meth(); } } class A { private $b

[PHP-DEV] behaviour of static calls to regular methods

2004-06-21 Thread Ard Biesheuvel
Is the fact that the following code works intentional ? class S { function func() { A::meth(); } } class A { private $bar; function meth() { $this->bar="bar"; } function func() { S::func();