Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91204 invoked from network); 7 Mar 2013 08:46:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2013 08:46:19 -0000 Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.169 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 209.85.212.169 mail-wi0-f169.google.com Received: from [209.85.212.169] ([209.85.212.169:41607] helo=mail-wi0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/B0-20037-9D358315 for ; Thu, 07 Mar 2013 03:46:17 -0500 Received: by mail-wi0-f169.google.com with SMTP id l13so3345518wie.4 for ; Thu, 07 Mar 2013 00:46:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Y7GQWkX0cjp/f2echfIbTgdfPJj6iyUFnb2S2/blXXE=; b=fzlRXu6xJr645iydnvRDKRnDDydvmHnTjoswWfVXx4XtjYAYr68LSLMs9Ad3kZ3qg9 8wrX8gCz7GPIxU2xacDhLhEfXPkhHE6scI3J07UMJq739pCR4Mr6Du/mlTc2joiWEZDA jF5ubxzWnOAduzwlN3cSxG1rP+Q7XsaSpdHnARhaRKv+C+R91djrK4SNOSwajFXFlvQF J2U8y6sRO81NWOLAYyBnmkJkIpC0q6W11Mn6RknI7nUy+QcPdNyqF237yST+na0DFgbx lD0QZW4Hvcd1Up/K2c/2e03Hi37X4pHYEr0fCrkqTp86ZOIGCSLbgT0eY40cQ5pfX1Qj MZDw== X-Received: by 10.194.110.69 with SMTP id hy5mr52529119wjb.1.1362645974300; Thu, 07 Mar 2013 00:46:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.96.72 with HTTP; Thu, 7 Mar 2013 00:45:53 -0800 (PST) In-Reply-To: <5137D21C.1050907@sugarcrm.com> References: <5137D21C.1050907@sugarcrm.com> Date: Thu, 7 Mar 2013 09:45:53 +0100 Message-ID: To: Stas Malyshev Cc: Bob Weinand , PHP Mailing List Developers Content-Type: multipart/alternative; boundary=089e010d867a4241e604d751bda1 Subject: Re: [PHP-DEV] [RFC] unset(): return bool if the variable has existed From: krebs.seb@gmail.com (Sebastian Krebs) --089e010d867a4241e604d751bda1 Content-Type: text/plain; charset=ISO-8859-1 2013/3/7 Stas Malyshev > Hi! > > > RFC updated. > > > > Any other comments about this RFC? > > Could you provide a use case for this - which practical value this has? > > 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. > > 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) Shouldn't this fail a little bit more obvious (-> "loud")? And how is this even possible? > or there was > nothing to unset (i.e., it is still not set)? > So I guess this is the only useful behaviour. However, I have no idea, what this information should tell me. If I call unset() then I want to ensure, that the variable is not set anymore, but for what reason I should need to know, whether it was set before, or not? Regards, Sebastian > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- github.com/KingCrunch --089e010d867a4241e604d751bda1--