Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66539 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53171 invoked from network); 7 Mar 2013 19:57:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2013 19:57:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.163 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.163 smtp163.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.163] ([67.192.241.163:51294] helo=smtp163.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/99-31723-721F8315 for ; Thu, 07 Mar 2013 14:57:28 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp16.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 2AD0E41446; Thu, 7 Mar 2013 14:57:25 -0500 (EST) X-Virus-Scanned: OK Received: by smtp16.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id CB0684144A; Thu, 7 Mar 2013 14:57:24 -0500 (EST) Message-ID: <5138F124.4090702@sugarcrm.com> Date: Thu, 07 Mar 2013 11:57:24 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130216 Thunderbird/17.0.3 MIME-Version: 1.0 To: Bob Weinand CC: PHP List Developers Mailing References: <5137D21C.1050907@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] unset(): return bool if the variable has existed From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > The main practical value is in the __unset magic method. You can now > communicate through the "proper" way of a language construct with an > __unset method. (success or failure) I'm not sure how useful is that based on your example - unset could throw the exception as well... And the whole case seems still unclear - what is "false" supposed to mean in general case? Property didn't exist? Property can not be unset due to special semantics? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227