Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86626 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21587 invoked from network); 13 Jun 2015 16:46:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2015 16:46:21 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:34641] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/41-07883-C5E5C755 for ; Sat, 13 Jun 2015 12:46:21 -0400 Received: by wibut5 with SMTP id ut5so41045364wib.1 for ; Sat, 13 Jun 2015 09:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to :message-id; bh=t3ATJAMCDKBpcSBZVVZp/YUwMhDzE/frvscD5El9qgg=; b=0KUOt40CY0S9lfuGysvCmgVSL6hKZ/lfPpxszT4r0ZHRS4XnarxjsiXun3v+D/Gb5l cmDfg5uKkb/gPXyYA4NgDAg9pU+wOPWC9RZtvUSZQnJo/xSRQESS46sm/yaBo2lNmuMD +KYFzI0bxaL14yF9ruWy1xIGlM42k9Afndu0A0cG/WJ5Xr14rBJusvWoxIhvr/4shwlU 3eHrOXuXfEpI7zY9s3dI/G22OxJhAlllhKckApXV+O5cdNQVcjgjqBhxXyn8drR0Gdz7 w/dlKYszQYuV+S/WlxEYi+z3Tblg+TpQE7Z2GWUiyjt6SNFQpQtzWFClfp2uXXeg4vmv i56g== X-Received: by 10.194.205.101 with SMTP id lf5mr37011654wjc.42.1434213977273; Sat, 13 Jun 2015 09:46:17 -0700 (PDT) Received: from [192.168.0.6] (cpc68956-brig15-2-0-cust215.3-3.cable.virginm.net. [82.6.24.216]) by mx.google.com with ESMTPSA id m4sm9607837wjb.37.2015.06.13.09.46.15 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 13 Jun 2015 09:46:16 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Sat, 13 Jun 2015 17:46:03 +0100 To: PHP Internals Message-ID: Subject: Re: [PHP-DEV] PR #1325 - array_column() for array of objects From: rowan.collins@gmail.com (Rowan Collins) 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. Regards, -- Rowan Collins [IMSoP]