Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116033 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24548 invoked from network); 12 Sep 2021 10:03:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Sep 2021 10:03:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 150DA1804C8 for ; Sun, 12 Sep 2021 03:42:26 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 ; Sun, 12 Sep 2021 03:42:25 -0700 (PDT) Received: by mail-wm1-f53.google.com with SMTP id v20-20020a1cf714000000b002e71f4d2026so3494749wmh.1 for ; Sun, 12 Sep 2021 03:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:user-agent:in-reply-to:references:message-id :mime-version:content-transfer-encoding; bh=1X9SrCUmgTptok0oUSbUgQgIzSXN9wr5P4IM1Y4XKIw=; b=LtP60RGr2FT1kMU7KRhbwJ5FYTszMM6LRv2r9uz6nS2Z/v6pRJfplLSe56g/3+BiJo wWlidVoJTIopRwMl36CeLNXngqcDJj7hjeo+RmkzPWWcPzVSZep1ZKV7Ub0ntBgdW6Vy SSXcgotubVyLjaq+yllsT3zI1NAbqWQ6Vs7cEzEWBZqGRD7DEJHFYy1Go/4fwBtnLGNt CaIf1rvyC96M98NTzSj1duo2fKuiVH8TXJRcSOtQVIwX8HsZppktFcKk9fe9tfCVQ4js YA1SXlm3I46l4eVvqq6h4Ja4PnsoU98kY7I8uqK4uummxGY2Yl6QQQFkrY6z5nwVes36 AiAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:user-agent:in-reply-to :references:message-id:mime-version:content-transfer-encoding; bh=1X9SrCUmgTptok0oUSbUgQgIzSXN9wr5P4IM1Y4XKIw=; b=sTnhz2QnVj1CYgzwaw0US3c3MElcVh+Xo8BDT2goistO6adddYRc/foUZGDXE1WuiS LB72/1d+FHKPQDTP2zCQBcM6bflchbIdDM9nn5pCSExH60m27jmDuh0neo4yHKxt7eE4 t8znLgSatnsFjUp0lTKP9kNDjXVj8UthmgT9ue2hzQeqBIY/iepmEbaisar0RsPVDOLV mPzOrwRue6VYcqd6K1ae9GtTzqvJDHXlorEN3tq3Z+HwWNc22zrejMnKgKTRiJ/KXUPA izMh2L9CLIRLfOc60tyr/+fKhPwYQsEau03JOZE/gDJYkHLueUbS21OZNLcIVYIszdd0 r81A== X-Gm-Message-State: AOAM530BDxUX4yFCEWN3QSm2oeuRklRqUL2J0wi3dQ7m1CywAihQD/Qp VojL8hvNYtGyBs+35OdRbpGxBNHUjh8= X-Google-Smtp-Source: ABdhPJyhjuh0xZcqcD+NRm3HhYJAmpYq2ryH5l0pH4UMwURjSh9F0bCloxPLnhngNpDWlmJKD7/YjQ== X-Received: by 2002:a05:600c:3b89:: with SMTP id n9mr6277925wms.186.1631443342030; Sun, 12 Sep 2021 03:42:22 -0700 (PDT) Received: from [127.0.0.1] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.gmail.com with ESMTPSA id m184sm3897841wmm.3.2021.09.12.03.42.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Sep 2021 03:42:21 -0700 (PDT) Date: Sun, 12 Sep 2021 11:42:20 +0100 To: internals@lists.php.net, David Rodrigues , PHP Internals User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <5A6B8FD6-27D3-48EC-9AB2-FFD61565EFB2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Class static initialization block From: rowan.collins@gmail.com (Rowan Tommins) On 12 September 2021 00:28:02 BST, David Rodrigues wrote: >Hello! > >I would like to suggest a feature I saw being implemented in the V8 9=2E4 >engine called "*class static initialization block*"=2E Hi David, There was a similar proposal for PHP a few years ago: https://wiki=2Ephp= =2Enet/rfc/static_class_constructor Although it didn't go to a vote, the proposal was dropped for lack of supp= ort=2E There's some discussion summarised in that RFC, and you can probably= find the rest by searching for its title on https://externals=2Eio Regards, --=20 Rowan Tommins [IMSoP]