Re: [PHP-DEV] Weird behavior for $this variable in PHP4

2003-07-11 Thread Alan Knowles
in php4 $this gets passed in All static method calls ,as if they where parent::sss() - so statically calling one object method from another object instance will take '$this' with it.. Last word on this 'feature/bug' is that it will be removed in PHP5, (bit of a bugger - I'm sure some of my old

[PHP-DEV] Weird behavior for $this variable in PHP4

2003-07-11 Thread Josh Fuhs
Hello, I'm getting a problem with $this being defined where it shouldn't be. The code that I'm writing is a little weird in order to compensate for the lack of some OO features in PHP4. The PHP script at the bottom should give the behavior I'm referring to. Is PHP5 in a more-or-less stable state