Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98548 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81267 invoked from network); 15 Mar 2017 22:27:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2017 22:27:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.48 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.214.48 mail-it0-f48.google.com Received: from [209.85.214.48] ([209.85.214.48:38288] helo=mail-it0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/43-38004-BDFB9C85 for ; Wed, 15 Mar 2017 17:27:40 -0500 Received: by mail-it0-f48.google.com with SMTP id m27so29130169iti.1 for ; Wed, 15 Mar 2017 15:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=pnyAANpjkzxvYHDkRxsgozS028Z0zNX4tt2o22yLTDE=; b=qfl+5vUNzklBnCwueYDNVPVQRH0/hUSM3X1OFvmJY0O4kQr0bILJ9JYmtOjB8LZyW5 lJz+Xk7wPKJcd+x6LMbC++9b6kmXOYUSr1Ougoc7lHFhOPqQoulcF2byh3vXwi1XvdBz sbHesUX/MUhHVisp8aijhabL2aCqTtrN5bTn0B7c+qRMRI+VGroF6RsyQ5g22Y9B2NED 9kcSgoCqNVyXMjyDNIjoSQj1zCXT7UK3GAD0Q8TbgI+NeO4Cg5je1MYI6AQHVWLhJKXz WFqqBtmN26ljLKCLgyN2ibg+Q8s9U+McyNPqvFOvTQ0/swTNjVWs0E/Mi6BN3IyDc32X t/vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=pnyAANpjkzxvYHDkRxsgozS028Z0zNX4tt2o22yLTDE=; b=XeMcbwyL5SjWA0bUKVUAmvdTSybqUCtWEVKukP4HX8EAkPpwgpReUZ2ouyRHd5HGYV aHtaU1DH8MojL9LHjzPj0sQ+nqcp4eLUA0W0MDYSHQErKF2T1KU+zZJqnpyBVDrXAjxO X8aLQqW9mnU11/awSrrDJws2UzZdAg1fs1CJbwRhgxUIPf1ZUex0FYZtCU+1RITKyIn8 DkWeTCsEc7fC8wUSj7AdtT1TGAsOhDkZlB8tKkM0gpYwQhX71p/Wkwu5zG2O226prj6y K0PIWlyEU/8cK2n5FVhxUMPz6dClvrJdtI93IwvSQmB1axFiR5ApYXSj/N30QPh6Bp+S gmIA== X-Gm-Message-State: AFeK/H1UEV4yx+s04SsrOJHUcwzlu+c6XWECWRbQ2+sHeUPkgnqCdZ+iaC3rylRbtx1PCB1vGD97Jqo8zi4YnA== X-Received: by 10.36.219.10 with SMTP id c10mr7161505itg.1.1489616856689; Wed, 15 Mar 2017 15:27:36 -0700 (PDT) MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.107.134.216 with HTTP; Wed, 15 Mar 2017 15:27:36 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Mar 2017 23:27:36 +0100 X-Google-Sender-Auth: M916qV-gifuVQODnAAM7gRrXbYk Message-ID: To: Marco Pivetta Cc: =?UTF-8?Q?Beno=C3=AEt_Burnichon?= , PHP Internals List Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Add __toArray() method to objects that would be called on cast to array From: kalle@php.net (Kalle Sommer Nielsen) Hi 2017-03-15 21:41 GMT+01:00 Marco Pivetta : > This is a BC break due to the fact that the `(array)` cast is used to > extract property information from private properties in library code. Yep, but then again that is more of an undocumented-not-really-supported case afair, if anything then Reflection should have the APIs to officially allow that, although I am still skeptic of this. -- regards, Kalle Sommer Nielsen kalle@php.net