Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5228 invoked from network); 7 Mar 2013 12:10:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2013 12:10:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.105 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.105 blu0-omc2-s30.blu0.hotmail.com Windows 2000 SP4, XP SP1 Received: from [65.55.111.105] ([65.55.111.105:17063] helo=blu0-omc2-s30.blu0.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/F0-31723-AC388315 for ; Thu, 07 Mar 2013 07:10:50 -0500 Received: from BLU0-SMTP140 ([65.55.111.72]) by blu0-omc2-s30.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 7 Mar 2013 04:10:47 -0800 X-EIP: [W7Qh7Kog9gjFJLpuRny1/PxDr1sn71xK] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Received: from bob-weinands-imac.fritz.box ([78.141.134.76]) by BLU0-SMTP140.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 7 Mar 2013 04:10:46 -0800 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) In-Reply-To: <5137D21C.1050907@sugarcrm.com> Date: Thu, 7 Mar 2013 13:10:43 +0100 CC: PHP List Developers Mailing Content-Transfer-Encoding: quoted-printable References: <5137D21C.1050907@sugarcrm.com> To: Stas Malyshev X-Mailer: Apple Mail (2.1499) X-OriginalArrivalTime: 07 Mar 2013 12:10:46.0388 (UTC) FILETIME=[CC819B40:01CE1B2C] Subject: Re: [PHP-DEV] [RFC] unset(): return bool if the variable has existed From: bobwei9@hotmail.com (Bob Weinand) Am 7.3.2013 um 00:32 schrieb Stas Malyshev : > Hi! >=20 >> RFC updated. >>=20 >> Any other comments about this RFC? >=20 > Could you provide a use case for this - which practical value this = has? >=20 > It also still contains factually incorrect claim that unset() is a > function and that there's some "inconsistency" in the fact that it = does > not return value. >=20 > Also, it is not clear what false returned from unset() actually means = - > did it fail to unset the value (i.e., it is still set) or there was > nothing to unset (i.e., it is still not set)? > --=20 > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php 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've added a code example to the RFC. Bob Weinand=