Re: unsetting class properties

From: Date: Sun, 06 Jul 2003 08:08:38 +0000
Subject: Re: unsetting class properties
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-3270@lists.php.net to get a copy of this message
At 18:36 05/07/2003, Marcus Börger wrote:
During a nice chat with Andi both of us came to the conclusion that the user may shoot himself in the knee if he wants to. So we allow unsetting default properties what makes PHP objects a thing between real objects and pure instances.
Just for the record, the pain involved in this shot won't be that significant. Because of the way the engine works, the access information related to the property (PPP setting, whether it's static or not, etc.) are kept separately, and won't be effected by unset(). So, if you unset a private property, it still remains private, just without any value currently attached to it. It's really not that bad. Zeev

« previous php.internals (#3270) next »