Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37702 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49597 invoked from network); 18 May 2008 16:41:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2008 16:41:46 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:35093] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/AC-57662-74C50384 for ; Sun, 18 May 2008 12:41:45 -0400 Received: from MBOERGER-ZRH.corp.google.com (71-170.78-83.cust.bluewin.ch [83.78.170.71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id B2D7411F06B; Sun, 18 May 2008 18:41:40 +0200 (CEST) Date: Sun, 18 May 2008 18:41:11 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <203770284.20080518184111@marcus-boerger.de> To: Christian Schneider CC: Marcus Boerger , PHP Developers Mailing List In-Reply-To: References: <48169695.9040803@omegavortex.net> <7dd2dc0b0804290817v3d8de030y1208a88f78c44411@mail.gmail.com> <862660524.20080506162159@marcus-boerger.de> <912CE6DE-22D0-43E6-BB6B-6154980050E5@procata.com> <1210101672.3952.4.camel@localhost> <489751132.20080506214551@marcus-boerger.de> <10845a340805070633q2316a598lc1a69f259c523341@mail.gmail.com> <92634160.20080512164700@marcus-boerger.de> <10845a340805120803k2587870bnf890ce44765f5e97@mail.gmail.com> <721653902.20080513155302@marcus-boerger.de> <4829A0C9.5050308@cschneid.com> <1629174644.20080514020633@marcus-boerger.de> <76FF1B4A-1CAB-407A-9E6D-41E8C1137FCB@cschneid.com> <1284376279.20080518132000@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Class Properties in Interfaces? From: helly@php.net (Marcus Boerger) 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