Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103718 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51506 invoked from network); 12 Jan 2019 23:04:18 -0000 Received: from unknown (HELO mail-yw1-f52.google.com) (209.85.161.52) by pb1.pair.com with SMTP; 12 Jan 2019 23:04:18 -0000 Received: by mail-yw1-f52.google.com with SMTP id i73so7166753ywg.3 for ; Sat, 12 Jan 2019 11:39:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=duncanc-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=ZQNifDKXlzrWQ6dveXZivFTLUeh+L74OKKAm6pCjs0Y=; b=iKpFw2g7mrQvoTmyMXlWPQj0rvSnvzBA3eI4wAfEcNdTC/EMjVzcFcl7OnQN9FtHUe 4UI9A6YAfKiyT7Ypur6U8VWFIoICix9lJuNw4j0NVspvIz/AEH3E0eGUA1Vg0WzW+4jn 4o8XSU2tug6A4OADQOzk73VQfjz8sK2jMUCvXVJArNUgBruqe3cZZTHkug5Z9FCw3k+e /PHbJjEvcn4qJ8zUbCAGSaBISnucjO/u/jhKHc9lIu7IjNxzhpGAIUKLLWazMxj87Fcy 6gHVal7v4HOi+gEeMG35feHg3fpXjA1m5G8ZmbEN+k61NEAeDLS/cY3BrcGYum24CPOk JC8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZQNifDKXlzrWQ6dveXZivFTLUeh+L74OKKAm6pCjs0Y=; b=MY51R+FDWK7C7K4JfsFrWcj7gw3hA3pGLHcsRWyTpdtVTe2F8jKV8a1oJNyK091lzI xuJczddC+OOJLXeKAhdwwpNUZayXmsytyNB2vacPkjLP3S+AMfQMSeL7C0nxEQ/Rhm7r ATT4TbMbqRev4xl755zFI9opJgL8bIUUvIDwCZ1hZBx8YSX8IyCvrmDzkcgIa6N5m9Wt 8hWaG9LDhloN2LJhIy0RzvWga3wO0skUEiv/Sk06ATFeIo6J5j+6UXtL5BRfQQWP7pLJ 3V17aydOBg3WMU6yPTWSQRlIfAbtxuzHMpdwrN19Hhx6euYMcJBW5By9hbDOdTv1kyMM +O0w== X-Gm-Message-State: AJcUukf1sN9X0yAU2OJWMRtsCo6GUufMmI3vAm9LeubC8IHb1+ciFl6i 7uiEI/MKphtqwch/zdf7i4R5bxsXdM2c5g== X-Google-Smtp-Source: ALg8bN4i3d8l/+AuWPSy1UA65Jjb3GW7i2mAsk+rNFJ5YGJuPN6XErjNRNgUpDanVObsLgJVpq8fMw== X-Received: by 2002:a81:58c4:: with SMTP id m187mr18528094ywb.300.1547321969860; Sat, 12 Jan 2019 11:39:29 -0800 (PST) Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com. [209.85.219.172]) by smtp.gmail.com with ESMTPSA id p201sm34124140ywe.45.2019.01.12.11.39.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Jan 2019 11:39:29 -0800 (PST) Received: by mail-yb1-f172.google.com with SMTP id w186so6283629ybg.1 for ; Sat, 12 Jan 2019 11:39:29 -0800 (PST) X-Received: by 2002:a25:bfc1:: with SMTP id q1mr10423174ybm.247.1547321968949; Sat, 12 Jan 2019 11:39:28 -0800 (PST) MIME-Version: 1.0 Date: Sat, 12 Jan 2019 19:39:18 +0000 X-Gmail-Original-Message-ID: Message-ID: To: Internals Content-Type: multipart/alternative; boundary="00000000000050186e057f47f8bb" Subject: Making stdClass iterable From: php@duncanc.co.uk (Craig Duncan) --00000000000050186e057f47f8bb Content-Type: text/plain; charset="UTF-8" Hi everybody I'd like to propose a change to stdClass so that it can satisfy the iterable parameter/return type. Firstly I acknowledge that this isn't an ideal solution, but I think it gets us to a better state than we're in today. It shouldn't be necessary, but while we have such a common function (json_decode) returning stdClass we should make it easy/unsurprising to work with. https://wiki.php.net/rfc/iterable-stdclass Thanks, Craig --00000000000050186e057f47f8bb--