Hello Christian,

Sunday, May 18, 2008, 1:30:08 PM, you wrote:

> Hi Marcus,

> Am 18.05.2008 um 13:20 schrieb Marcus Boerger:
>> Not allowing unset() is the bug. Having unset delete the property  
>> would be
>> the error. As long as the property still exists with value NULL all is
>> fine.

> I think unset($foo->bar) should unset while $foo->bar = null should  
> set to null to keep things consistent and true to the operation's name.

Just to make this clear once and for ever. If unset() deletes the property then:
a) it would break inheritance
b) accomplish nothing, as the next access would simply recreate it

> But as long as unset() is allowed (with either semantics) I'm happy to  
> end this thread.

> - Chris





Best regards,
 Marcus


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to