Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114512 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72133 invoked from network); 18 May 2021 07:32:09 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 May 2021 07:32:09 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 07FF71804E3 for ; Tue, 18 May 2021 00:41:37 -0700 (PDT) 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-Virus: No X-Envelope-From: Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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, 18 May 2021 00:41:36 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id x19so12708466lfa.2 for ; Tue, 18 May 2021 00:41:36 -0700 (PDT) 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=6WO8dFw3777815nXoKW50WngBrM6GBdvWpmBPH3Xx7o=; b=KkzzfV7jmqDauoSiW2PMDJ70t9QLsCsKVfyBAk36UURNsI3jmZ8YyqM1mIbf0qHizJ g+VnTmKgqgL4l8mR0+1xFeDabUiiTFzOSoSBcU6id0hyecXcMSN6jZmy3vluvS8ECwGl luB6fn+3cTTb/Y7irbHcO9G2d8XUWB9zxpF1QyplN9g0AG1uNXo5e2XjE5UpaqC8dktv 4j8RyU230sZIXcwajIhbtLj/PfpKZwE8DBhLtIvGIzS8c1tll5Cwa2QtzvIDpwCZDFU1 zXKSMCG33a3mAjbIm4rF/S+R0eBTMKrfmAtUb8BylTIg315EVr5Tla5/v5ugf31832k4 0YBA== 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=6WO8dFw3777815nXoKW50WngBrM6GBdvWpmBPH3Xx7o=; b=IcqgrBSXDdDVX6XWMqmhgSkJ2m7hQCJo1cpDzMR4OBvqNdp086jYuAZ+sgnM50hvTC yTz20DNWweWfa7zCOKcetqcEf/GgGcTdKBA4BoSRJyDMdIoGNC7xVaA6WLfr0i5Oshp5 fhiRwWHUMTpaWQIxX03v1JeRhhH8BQAsUem2AaqVGs9AZeOVtQN75ausspZQOPrMcKof 8h8cganffg5TAMNrbokOfv5xatVQ7QbYnNV8tlJIYqQUILfm3T2/CADRWoKnN/O5ur3Q kO9eO/C2x2SBd90L7vG7yd1l5puJH+PHSqiSqmPkEEUUlzNC3uWf+wfXzckQxwAJqNlo kCbA== X-Gm-Message-State: AOAM530xbS16y6FwproFIzLGqTXBS3Nl8qSCn6AqvHz07f6WFR8W8/IR IucmvTLHviViQySe977YsDn65X8GLqV9VJJJWQ== X-Google-Smtp-Source: ABdhPJwQ4SXPHm5hYcgV20clEuVuSRE3BbSkxQvP8cRT3jiad7+BzaOuumfGerG8gatW0/aX/AZ5JyBVVKy2v+UpG5k= X-Received: by 2002:a05:6512:1150:: with SMTP id m16mr2000986lfg.486.1621323694061; Tue, 18 May 2021 00:41:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 18 May 2021 09:41:22 +0200 Message-ID: To: Gabriel Caruso Cc: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000d9ba8e05c295d69a" Subject: Re: [PHP-DEV] Re: [RFC] [Discussion] Final constants From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000d9ba8e05c295d69a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 18, 2021 at 1:23 AM Gabriel Caruso wrote: > On Sun, 16 May 2021, 15:52 M=C3=A1t=C3=A9 Kocsis, wrote: > > > As I've fully finished the implementation, I intend to bring this to a > vote > > on Wednesday if no new concerns come up (besides the usual question abo= ut > > the usefulness of the feature). > > > > M=C3=A1t=C3=A9 > > > Interesting RFC Mat=C3=A9, thanks for bringing it. > > How would we know if a given constant is overwritable? > > Would we need something like `ReflectionConstant::isOverwritable()`? > Hi Gabriel, see https://wiki.php.net/rfc/final_class_const#reflection > A `ReflectionClassConstant::isFinal()` method is added in order to be able to retrieve if a constant is final. Regards =3D) --=20 Guilliam Xavier --000000000000d9ba8e05c295d69a--