Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108371 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82649 invoked from network); 4 Feb 2020 14:58:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Feb 2020 14:58:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B704F18053C for ; Tue, 4 Feb 2020 05:10:14 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 4 Feb 2020 05:10:14 -0800 (PST) Received: by mail-io1-f50.google.com with SMTP id d15so20855906iog.3 for ; Tue, 04 Feb 2020 05:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fjrgRo76YDfH8CerxoCDKVsFha7EtYgKA5R+fSNL0+0=; b=jjfFyhLB1eUZ6reGC1xXfyTVXBKBZDwyqyOcvZ/dgg/T6/PY+iZJr/A+BMLEwnV16B DPl2v80bA0QMnpkZrVsk7J+HeqoPFamo4xvAi7goOVmIHlv3JSdgGOzzzBUBPbDZH2To /OpKSyPFEi3EqMUmaP7zIL+sLNgKVp6LtSxqAoHUQ73qUQvl+65QV7R233yBoFstBZg5 H0K4AfcrlbuNzPvacDdKiehhlDpIukFHrjnVOA2tvv7lNU+mDdzAo1Q8kD8Lg5x3slTc 8nPpxWDJkRnI4dash95rVaTTQuDy/G9VfEGwKT58UntWWnBJDMw8TR5fV+jLf5F45QG8 qMrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fjrgRo76YDfH8CerxoCDKVsFha7EtYgKA5R+fSNL0+0=; b=MrF43EVpDt63aNHdupA6TIw+Vl4FXin18F+t8A0Y8YEE8jrnTPFcNzBoAMM4tQ6JWH WxiKRlffI+TBx1iHhaDVI3DXR2i9MPVna74otXrfUcKwh0ZnMR95HEImbYCvkb/OIOT3 XEIyzCBGdckhzQ0w92uJGmerD9JUmf+Bqxz2JXnzA+aPvNObd2ACzDaszVjlpr1xT5XK WdSRFd38oEKD5GL8lP0JlH6kBEPionckNYXqtrlCQc1uT4130ZrmPQwRN6dIZZdXAAI7 JgRV1AMgzQmzPc/cJNbYTbY/3Pz0wbEYb+jeErFJ6dLzigr7TnhS7R3Jwf5xe/Xpylqo WKXA== X-Gm-Message-State: APjAAAW5FvjUPJ+junxGW6D27RhbPCp/KNWF6AHnrb+e0L1LdeTtcDVk EXfJ0Z12k2s5TBbbugMLXQh4BDEWyAni4Haw6qE= X-Google-Smtp-Source: APXvYqywZFBN4nDz2aGn5k9jwpldzDvHqv5weGHdmiJ2tZDsTl/YQx0+ib+DtnZtlOxSSC1i7J7SkzAgm/zQFDRx1dU= X-Received: by 2002:a02:cbd9:: with SMTP id u25mr24542529jaq.106.1580821813681; Tue, 04 Feb 2020 05:10:13 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 4 Feb 2020 14:10:02 +0100 Message-ID: To: Steven Wade Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a86421059dbfc2d6" Subject: Re: [PHP-DEV] [RFC - discussion] __toArray() From: ocramius@gmail.com (Marco Pivetta) --000000000000a86421059dbfc2d6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Linking (again) previous discussions: https://externals.io/message/98539#98539 `__toArray` as a magic function call when `(array)` cast happen is a bad idea: it is a BC break, and it removes one of the very few interactions (with objects) that didn't cause any side-effects ( https://externals.io/message/98539#98545, https://externals.io/message/98539#98567) Greets, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Tue, Feb 4, 2020 at 2:03 PM Steven Wade wrote: > Hi all, > > I=E2=80=99d like to officially open my __toArray() RFC < > https://wiki.php.net/rfc/to-array> up to discussion. I=E2=80=99ve delayed > changing the status until I had more time to respond to the discussion, b= ut > since it=E2=80=99s been brought up again , I > figured now is the best time. > > https://wiki.php.net/rfc/to-array > > Cheers, > > Steven Wade --000000000000a86421059dbfc2d6--