Re: [PHP] private properties problem

2005-10-21 Thread Colin Shreffler
I'm not sure this is a problem. I ran the same test and as you say, it dynamically created a new variable with local scope to the derived (child) class. I would expect this to happen as it can not access private members of its base (parent) class. In your statement: "But when trying to access t

[PHP] private properties problem

2005-10-21 Thread Pablo Godel
Today I discovered a possible serious problem with the way the latest PHP versions handle private properties. Given the following code: function Test() { $this->var1 = 10; } } $c = new FinalClass(); $c->Test(); print_r( $c ); ?> I get the following result: FinalClass