Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66503 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39950 invoked from network); 6 Mar 2013 21:34:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2013 21:34:50 -0000 Authentication-Results: pb1.pair.com header.from=florinpatan@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=florinpatan@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.47 as permitted sender) X-PHP-List-Original-Sender: florinpatan@gmail.com X-Host-Fingerprint: 209.85.219.47 mail-oa0-f47.google.com Received: from [209.85.219.47] ([209.85.219.47:40233] helo=mail-oa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/00-39658-976B7315 for ; Wed, 06 Mar 2013 16:34:50 -0500 Received: by mail-oa0-f47.google.com with SMTP id o17so13158862oag.6 for ; Wed, 06 Mar 2013 13:34:47 -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=Ul73OZcFfVx4NrusRQQ+VebbbPf7UFqrFVlOUfJUkuw=; b=GAe6cJLz/Wxv/GzLGNPJSMrtboOvPBD3c9/ycIcd4A5J8U1Fkuwvur/EDujK584B4y loDV7S4OV9HF67KHPyKdJHlkWIX6ScjsN0dyGmXA08n9Lk4KQaahq8a1EJ4+EwSnEnYq MZPv68TcO1EuVpJTE9JnfF0JurC+Zo5aAPw1qCzsAqc699xnSvJzMYFqyHAsdDLPresA fwRIV4BHsifaRzi2pqCQSaRIL66/B4YqlLXdJ8wt4aTc94ghl23P5hdgnDrqgM2Gpcs2 HoeAY6d3TqBupxZceW/bsFfkBpjtt6sFf+DlUOAipUcqOSwomrGg1bx/2Yx06sZc85Kl YqLg== X-Received: by 10.182.118.103 with SMTP id kl7mr24597202obb.13.1362605685246; Wed, 06 Mar 2013 13:34:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.169.3 with HTTP; Wed, 6 Mar 2013 13:34:15 -0800 (PST) In-Reply-To: References: <5137B411.6010001@mrclay.org> Date: Wed, 6 Mar 2013 23:34:15 +0200 Message-ID: To: Bob Weinand Cc: Steve Clay , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] unset(): return bool if the variable has existed From: florinpatan@gmail.com (Florin Razvan Patan) Hello, On Wed, Mar 6, 2013 at 11:31 PM, Bob Weinand wrote: > false. It's like unset($setValue) && unset($undefined). > > I've clarified this in the RFC; thank you. > > Bob Weinand > > Am 06.03.2013 um 22:24 schrieb "Steve Clay" : > >> On 3/6/13 4:10 PM, Bob Weinand wrote: >>> https://wiki.php.net/rfc/unset_bool >> >> What's the return value of unset($setValue, $undefined) ? >> >> >> Steve Clay >> -- >> http://www.mrclay.org/ >> Would it make more sense to return an array with keys the name of the variables that were unset and the result for each of them? This way one could better handle 'false' being returned. I'm not sure if it's possible or not, I didn't had the time to check out the patch. Thanks ---- Florin Patan https://github.com/dlsniper