Re: Access of protected members

From: Date: Mon, 03 Aug 2015 10:36:02 +0000
Subject: Re: Access of protected members
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-87567@lists.php.net to get a copy of this message
On 3 August 2015 10:39:05 BST, Nicolai Scheer <nicolai.scheer@gmail.com> wrote: >Hi, > >just stumbled upon a strange issue. >I always thought that protected/private member variables can only be >altered from inside the object. Yeah, as far as I know, PHP has always interpreted private and protected as "available to this class" rather than "available to this instance". I'm not sure why, but it's probably not something that can be changed at this stage. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#87567) next »