Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86606 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42547 invoked from network); 12 Jun 2015 01:31:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jun 2015 01:31:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.175 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.213.175 mail-ig0-f175.google.com Received: from [209.85.213.175] ([209.85.213.175:35215] helo=mail-ig0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/57-31453-3763A755 for ; Thu, 11 Jun 2015 21:31:31 -0400 Received: by igbzc4 with SMTP id zc4so2213868igb.0 for ; Thu, 11 Jun 2015 18:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=iTUCSh0fJpHekIoV2lOGmLdRYLn+aPB4e5nRqVFYEcM=; b=WzxhM+HE4D1caLlhkHi8BGXN5UbSMmtg0OlCJ0d7VxnhvvxW/kXv5GC04NHPe7uKfl txKNwm9r6tD6GxeujbA3JJHyGRFpmOnQ+tBqVjpyr31+fFEWkMTth19puUuWn+GsfE/h UMhOk3msH7OVUi39C+NUf0xgs4xShjFEikqh57zWVg7vRUm2cdk5wgNO1rMZFChwdPBP +TN8ECW1dfuipQ1/RZyAUop9BqeRXjFMQK1GhG0n1MWwWGtbzdH+Fuuuddcgd1WSoWFN SAsDTNThbCPoA2nrjD1wRhzlIyyec6IdHjYPxKJXa01oNQEe3547DVsTZ7WD2Gvt4cYn nAKQ== X-Received: by 10.43.159.193 with SMTP id lz1mr13791222icc.26.1434072688729; Thu, 11 Jun 2015 18:31:28 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 12 Jun 2015 01:31:18 +0000 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a11c30c5431a8540518481134 Subject: PR #1325 - array_column() for array of objects From: tjerk.meesters@gmail.com (Tjerk Meesters) --001a11c30c5431a8540518481134 Content-Type: text/plain; charset=UTF-8 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? --001a11c30c5431a8540518481134--