Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69363 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73954 invoked from network); 26 Sep 2013 23:11:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2013 23:11:56 -0000 Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.169 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.82.169 mail-we0-f169.google.com Received: from [74.125.82.169] ([74.125.82.169:54121] helo=mail-we0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/27-37010-A3FB4425 for ; Thu, 26 Sep 2013 19:11:55 -0400 Received: by mail-we0-f169.google.com with SMTP id t60so1920303wes.28 for ; Thu, 26 Sep 2013 16:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JgKZrmKCMSeguGhgaft55C9rUk2tGJhStdpzWENl+Ps=; b=hp+Pbjg210OaMmhTgISHPgbTiITqVme19BOTh7C1VQrl+rGIPIk+os6XfAaSGFd4Dr SADB2tNzK6ewIjUjDI9SkdMWi6U5JCO9HvzmgYXcN8EGOwFaDoSfzzzYtUdi+jn750Sj HE48AIL3aZJIIxnEHOkbGiGleQ0Yg8o5WuGBUSNBnAVSNW2hglfkl6S946wrk5yzcGbT 07xs3xgfEf8cJQAkmkLyhkYYWyxduhigs9uuVYb3JcPODXoN8/KVbKvZk9X+K4AUy6O/ kUnP2NsLKLgXBwgymnXSL+SbYvnOHSWnlFX1+ul8fekt8gklYOHjzCxt8jmHOSu+vUDy P2oA== MIME-Version: 1.0 X-Received: by 10.180.13.174 with SMTP id i14mr29776135wic.49.1380237112224; Thu, 26 Sep 2013 16:11:52 -0700 (PDT) Received: by 10.227.134.196 with HTTP; Thu, 26 Sep 2013 16:11:52 -0700 (PDT) In-Reply-To: References: <13848974-B5E7-4044-9F04-C4EB15E09E9C@gmail.com> <52446146.7060100@ajf.me> Date: Thu, 26 Sep 2013 19:11:52 -0400 Message-ID: To: Tjerk Meesters Cc: Andrea Faulds , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c227e8c7b2d304e7517ebc Subject: Re: [PHP-DEV] PR 287 - added use_keys argument to array_filter() [Discussion] From: theanomaly.is@gmail.com (Sherif Ramadan) --001a11c227e8c7b2d304e7517ebc Content-Type: text/plain; charset=ISO-8859-1 On Thu, Sep 26, 2013 at 6:51 PM, Tjerk Meesters wrote: > > > I deliberately chose these values so that I can simply specify `true` to > mean pass both values. Bit masks seem cumbersome in this situation. > > The default behavior is already to pass the value to the callback. Requiring the argument only breaks backwards compatibility here. There is no need for introducing 3 new constants. Simply use PASS_KEY or PASS_BOTH to solve this problem with the default behavior is pass value if the argument is omitted. --001a11c227e8c7b2d304e7517ebc--