Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67716 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16855 invoked from network); 17 Jun 2013 23:20:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2013 23:20:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wg0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:58875] helo=mail-wg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/01-09792-8C99FB15 for ; Mon, 17 Jun 2013 19:20:41 -0400 Received: by mail-wg0-f42.google.com with SMTP id z11so4088906wgg.5 for ; Mon, 17 Jun 2013 16:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=BHx6EPeXDDrno9Gw+1HOUHNrVtGZ3tZc2XDIXQpPGFc=; b=jzjyp0eaRMu19d2qWkVLChEKQiBmi9DREZZ2IFh7RZDh7/DIWZwJLUToYurj7LaFjE O2feJbE2eF0WTeHaPSUQVFuDeVJc1j45Y04OPFgUGwZWSGV00pSpcwK1w9LVdN7frMFu Psp77ojhLdUe3U9DBzhsLMdd0P5L6qrwl3afWWV8RiZq14J5p8Gxjos8GT6FsptggF5h jpVRtusrRjQOFOoQF64agqwN9inKTf8iSuUXkDYrCYWNeQ7dgYmVdzEtoJq75ODk0TF/ 0QBr1zMHVu0/62wWNeA+zzIYNWX5OmLo2tu8dwCMtb5vs1dXp8RUGDMizVcDLz1km1De FU1A== MIME-Version: 1.0 X-Received: by 10.180.206.109 with SMTP id ln13mr1413601wic.20.1371511237440; Mon, 17 Jun 2013 16:20:37 -0700 (PDT) Received: by 10.227.156.201 with HTTP; Mon, 17 Jun 2013 16:20:37 -0700 (PDT) Date: Mon, 17 Jun 2013 19:20:37 -0400 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a11c328601cf9f604df61d89b Subject: PR 287 - added use_keys argument to array_filter() [Discussion] From: theanomaly.is@gmail.com (Sherif Ramadan) --001a11c328601cf9f604df61d89b Content-Type: text/plain; charset=ISO-8859-1 I'm starting up a thread for discussion on Pull Request 287 https://github.com/php/php-src/pull/287 (allowing array keys to be passed to the callback function of array_filter through a third optional boolean argument). I would like to merge this into master and as discussed on IRC it would probably be a good idea to startup a discussion and make sure there aren't any objections or clarifications not yet voiced. The patch has no BC because the third argument is optional and defaults to false. Personally, I have always thought it would be a good idea to be able to get the keys into the array_filter callback since I've stumbled across a few scenarios where that would have made things easier. I'm not sure if there are any particular down sides to this option being added, but none that I can find. It currently passes all tests in master and works as expected. Thoughts, opinions, objections, concerns? - Sherif --001a11c328601cf9f604df61d89b--