Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86704 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49419 invoked from network); 16 Jun 2015 04:02:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2015 04:02:06 -0000 Authentication-Results: pb1.pair.com header.from=ben@benramsey.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ben@benramsey.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain benramsey.com from 209.85.212.179 cause and error) X-PHP-List-Original-Sender: ben@benramsey.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:37263] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/9C-15639-CBF9F755 for ; Tue, 16 Jun 2015 00:02:04 -0400 Received: by wifx6 with SMTP id x6so6750402wif.0 for ; Mon, 15 Jun 2015 21:02:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=zRPlSn1mdV48jXp3iROVIA7DHcn40Pnc4l4Yodv1Dkc=; b=E9taID42kocorJ6ikS8sQoJ2QN4/JgjzDXbCq2jRsvBSsdh+sFx/ew86HEwqQbKUiU ntZbhPGMiagZJoSUCGbRO31+JJ3Ln7CPdlza0DbKq5lCwGH2hiZBVEmBHPEv/NSrFQVE padV1lZczCiu3NjKpzafCjOAD63rj3oa8mUz+SHl6nVosgrRH9HvZMyHQkX5A1EBQ5Gq 29gZklNtvk53mvmHGZJQUn8P68J3ae3QqbQizJsdLGeBszRJ8qb0wFgRW0BByjnfUhTP qj+lfK2ZiCF6RclXrTCB3bA+J3IrJcg7TnvE9Aq9zBA8xAt6pK4QaLVdgP90vqBVE/eW dQlw== X-Gm-Message-State: ALoCoQmWZu+MlJKTYaALiK5qkmjVEgkvJu+j3tjqAe6ZOVq6/d36u9lUMKLfRsDSxL68kDvtnh0B MIME-Version: 1.0 X-Received: by 10.180.86.168 with SMTP id q8mr37450091wiz.80.1434427321296; Mon, 15 Jun 2015 21:02:01 -0700 (PDT) Received: by 10.28.128.133 with HTTP; Mon, 15 Jun 2015 21:02:01 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jun 2015 23:02:01 -0500 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary=bcaec5555030f1438105189aa21a Subject: Re: [PHP-DEV] PR #1325 - array_column() for array of objects From: ben@benramsey.com (Ben Ramsey) --bcaec5555030f1438105189aa21a Content-Type: text/plain; charset=UTF-8 On Sat, Jun 13, 2015 at 11:46 AM, Rowan Collins wrote: > On 12 June 2015 02:31:18 BST, Tjerk Meesters > wrote: > >Hi, > > > >I've created a PR here: https://github.com/php/php-src/pull/1325 > > > >This enhancement allows for properties on objects to work in the same > >way > >as arrays for the inner elements of the main array. > > > >It also supports the __get() method, provided that also __isset() is > >implemented and returns true for the addressed property. > > > >The only BC I can imagine is when an array is populated with a mixed > >set of > >objects and arrays; any professional would baulk at the idea, but rules > >of > >the jungle are pervasive. > > > >Before I merge this, are there any objections to shipping this with > >7.0? > > Sounds like a useful and well thought out addition to me. Like > array_column itself, it's easily implemented (and, indeed, emulated) in > userland, but having it in the standard library helps everyone have the > same version out of the box. > I agree. This is probably the most-asked-for update to array_column() that I hear, and I haven't had time to implement it, so this is great. Cheers, Ben --bcaec5555030f1438105189aa21a--