[PHP] Bazar behavior w/ private member variables

2012-07-13 Thread Sebastian Krebs
Should go to the mailinlist :> -- Forwarded message -- From: Sebastian Krebs Date: 2012/7/13 Subject: Re: [PHP] Bazar behavior w/ private member variables To: Nathan Nobbe Hi, Private properties are only accessable from within an object of the class, where it's def

Re: [PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Nathan Nobbe
On Thu, Jul 12, 2012 at 9:23 PM, Nathan Nobbe wrote: > On Thu, Jul 12, 2012 at 8:38 PM, Tommy Pham wrote: > >> On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe >> wrote: >> > Hi all, >> > >> > Strangely PHP seems to let each class have its own layer of private >> scope >> > for member variables. I

Re: [PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Nathan Nobbe
On Thu, Jul 12, 2012 at 8:38 PM, Tommy Pham wrote: > On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe > wrote: > > Hi all, > > > > Strangely PHP seems to let each class have its own layer of private scope > > for member variables. If a subclass defines a member variable of the > same > > name as o

Re: [PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Tommy Pham
On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe wrote: > Hi all, > > Strangely PHP seems to let each class have its own layer of private scope > for member variables. If a subclass defines a member variable of the same > name as one defined in the parent the values are maintained independently > in

[PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Nathan Nobbe
Hi all, Strangely PHP seems to let each class have its own layer of private scope for member variables. If a subclass defines a member variable of the same name as one defined in the parent the values are maintained independently in instances of the child class. First off a simple class with a