Re: [PHP-DEV] :: context access (bug?)

2003-12-05 Thread Andi Gutmans
This is a "feature". We decided to keep it the way it is, and have people who really want to code correctly define their static methods as static. So to fix this you should define Miew() as static and you won't have access to the calling scope. Andi At 11:56 AM 12/4/2003 -0800, Marc Dembogurski

[PHP-DEV] :: context access (bug?)

2003-12-04 Thread Marc Dembogurski
I´ve found the example below which took my attention. The call to cCat::Miew() assumes the cDog context and is able to access $this of cDog. Is this supposed to be a bug or something that was not expected ? It happens to PHP4 to and php5. And looks a bit strange... class cCat { function