Re: [PHP-DEV] unsetting class properties

2003-07-06 Thread Zeev Suraski
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,

Re: [PHP-DEV] unsetting class properties

2003-07-05 Thread Marcus Börger
Hello Marcus, Saturday, July 5, 2003, 4:16:03 PM, you wrote: MB> Hello Zeev, hi Andi, MB> atm it is not possible to unset static members of a class which is correct MB> since that would modify the class protocol. But it is possible to unset non MB> dynamic properties (defined in the class). Th

[PHP-DEV] unsetting class properties

2003-07-05 Thread Marcus Börger
Hello Zeev, hi Andi, atm it is not possible to unset static members of a class which is correct since that would modify the class protocol. But it is possible to unset non dynamic properties (defined in the class). This should also be prevented as done with the attached patch. I did it by check