Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66504 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41326 invoked from network); 6 Mar 2013 21:36:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2013 21:36:32 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.172 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.128.172 mail-ve0-f172.google.com Received: from [209.85.128.172] ([209.85.128.172:43898] helo=mail-ve0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/50-39658-FD6B7315 for ; Wed, 06 Mar 2013 16:36:32 -0500 Received: by mail-ve0-f172.google.com with SMTP id cz11so7297523veb.3 for ; Wed, 06 Mar 2013 13:36:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=mKwhBALWHYB2Z3wUmdIzsLQQRk5ngbbboGGEJ28F6Wg=; b=EXOD7m1rNrROQeK75xJTRq69MsT4ioZulfKGfI5R7rZ2BN7+uUjnKC/cDDLO4QGdfp QJCwthtoLzP4Bw39oJpShTaKAf43pRz32zvAAPQggtIERvxfOrVYsSLhbKQmMbCY6MuN 0qfRndkqhyRYwW0dcHUiRd24tCbD4BaVo1mZOQVcc4EM8r36Nr4FQD07XuQCoZKnFGwW D15vQE0GvU+qunjPWbtGIaRCpLzT4Fc4s9cDc769pQEmJQOArKyrqo3Ete2Joe9Vgb9E n+8ib3BbecQwvZFr4YbUp4PE9LeNIqWYZifBf1pTvNQomzBkMbwPWQgTSrpYXyC6LiLj 5/1A== MIME-Version: 1.0 X-Received: by 10.52.20.239 with SMTP id q15mr10468757vde.73.1362605788849; Wed, 06 Mar 2013 13:36:28 -0800 (PST) Received: by 10.58.56.137 with HTTP; Wed, 6 Mar 2013 13:36:28 -0800 (PST) In-Reply-To: References: <5137B411.6010001@mrclay.org> Date: Wed, 6 Mar 2013 16:36:28 -0500 Message-ID: To: Florin Razvan Patan Cc: Bob Weinand , Steve Clay , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf307c9b2e03cf8004d74862ad Subject: Re: [PHP-DEV] [RFC] unset(): return bool if the variable has existed From: ircmaxell@gmail.com (Anthony Ferrara) --20cf307c9b2e03cf8004d74862ad Content-Type: text/plain; charset=ISO-8859-1 Florin 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. > If you need that much granularity, just call unset() individually for each one... Anthony --20cf307c9b2e03cf8004d74862ad--