Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103738 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66226 invoked from network); 15 Jan 2019 13:40:24 -0000 Received: from unknown (HELO mail-it1-f171.google.com) (209.85.166.171) by pb1.pair.com with SMTP; 15 Jan 2019 13:40:24 -0000 Received: by mail-it1-f171.google.com with SMTP id a6so3622106itl.4 for ; Tue, 15 Jan 2019 02:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=zNo0TIU73l1VRz7IPeaMtHb/6ZNgiEe1DN9nFRvHQ3Q=; b=fDvwlHMke/nFn5F8UW611IXnERiCa4tXug30f9j0r4X2RaWPUJ45csQrXkSzT2q6Nm nEpZwR08fX3QrvUlEwkQATwRnAIh1A9ewxvQ40OqbaWAW0907fVMsHdkSMrSzk7DWod7 LdKtemiwXtzGD24KGctjs3b1xaV4FNw2EpaC/3FVPLl4ehVWzmrO3Y89bmpSmSYubADS ZQeN2intmXqsDqP5fC0uDJ5m9KbXM8JklmOEUQGOuEScI1y0wF2P1/0aDGydrp5TfCPu TJ2wr+0O+TEcGQgTG0XJ2SRXCO0MI+c0jDBXtqiaLGga5RlsE3uqXksE5G2adBNWCeQ3 2gNQ== 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=zNo0TIU73l1VRz7IPeaMtHb/6ZNgiEe1DN9nFRvHQ3Q=; b=W+9SjBfEdbIN5Zs38hps8bkXtP7bt+0bp6vpKAkx0sl5gWJY9441xYTa+Q/sLw3Uc9 YdGkrISnDAMSAzWmZR0+TobnbizQB+YTIl0ID6SZStUSoMB2Vv2YxPhrQrcBHZvE5sr3 bpBW/rdEq6SlxPESKiHPSdIFRcpKxfyvm7WyM9SdmSoBoGehEB8IiN49of25TmmgEQ+6 s0Oizf4QccfK1BL0iZ0aGDxHM+45P8kEEOmp8v0C4x7gpJ2o0DZVOW3jqGEIypZfJOW1 bVK4IZTVjZlcuzbuAmogFpZAY8xzNfmE4EqW/8aMBqqIsqTvs1GWNR7wJTgmfxuHhx6S AoDA== X-Gm-Message-State: AJcUukfCNW+Jfc7RFDXPCshI8CTUMKXWKpflfeBkoxsXhqE21Rs/LrG6 EAOjnY5I9dkNeeB77TJxohTpmUcpGme4NAHYk+Syy1JZ X-Google-Smtp-Source: ALg8bN7rneRWcagmsRN2u9Xc1ak/59LZlK9whUKTUKBM/Ncl35JBWLqzjbm+b3x5wdkpKW56MlxkXvLuZddpd33infE= X-Received: by 2002:a05:660c:74b:: with SMTP id a11mr2003983itl.27.1547547374437; Tue, 15 Jan 2019 02:16:14 -0800 (PST) MIME-Version: 1.0 Date: Tue, 15 Jan 2019 11:15:57 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000086c844057f7c7361" Subject: [RFC] Reflection for references From: nikita.ppv@gmail.com (Nikita Popov) --00000000000086c844057f7c7361 Content-Type: text/plain; charset="UTF-8" Hi internals, I'd like to propose the addition of a ReflectionReference class, as described in the following RFC: https://wiki.php.net/rfc/reference_reflection This topic was previously discussed at https://externals.io/message/102638. The TL;DR is that some libraries need a way to detect references and determine whether two references are the same. They previously used an ugly hack to achieve this, but this hack will no longer (reliably) work due to the introduction of typed properties, so we need to do something about this for the 7.4 release. Regards, Nikita --00000000000086c844057f7c7361--