Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113591 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78190 invoked from network); 17 Mar 2021 15:36:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Mar 2021 15:36:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 624121804D1 for ; Wed, 17 Mar 2021 08:30:10 -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,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-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 ; Wed, 17 Mar 2021 08:30:09 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id u10so3692989lju.7 for ; Wed, 17 Mar 2021 08:30:09 -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; bh=zFYans2nn8JED+95HBXa7+zzkVnNsSORY/6ynhR+mCw=; b=QYM4ZOTHp/8n0z+oRQkLZ4OFGKw3iL3cP3v/eos1MhjYMA2jtSBqk9N2O1JCtao9/k B+pv6yA2DWm7PDN2HVaIDri9ealr22S/RtPsOeOPvyc3rWHNUpQwHdB38dDMDgPhsCyr ShvfdMB8dx4sKtmcFQM1hdUTxU2JdKQPJkC1cpxFI7R+A9LAc1+lsP1Bd1O2m8OR2ZRE UjDyxT5Ta7Ok4PpOslO3pvo5dgKqHnMpcSksyUYnRHdUKI8aD1jQyMUdJPktPdW1jEoc 3iXVQLN6ImRagvR+4wPaZqSfCKfUA7y4xh2Nw2h5dCHMaVLxAto8Wx4T5I5wQ+2t3heZ ZxeQ== 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; bh=zFYans2nn8JED+95HBXa7+zzkVnNsSORY/6ynhR+mCw=; b=KTy+YBQiqkZawJnyFiov2ZegahZmekonk4VwhQRikIFzvEr1vP3P6lo+Bo5au3v/M2 idDhTs9jUWeX3qVPcpE6iwo1VHQryfD8uEqM2weRPlDWjmnGTZfaNmHrJcQvewbP+VWV tNPf5wYjHZV04XUJA9QxZkftiG5YOue5f03yN5ndznupbxAEsh7M05gOIQRywU7QGSbW DPAoWi79nzyjGPJ1v5N0n+nf/fWF5+TL8e6EXtTaKxb6YrC67FDG6Rc7wt892g9XakgF obPll9spSOupX/S7HDqqvs7o/S/gGvAnSgwgNe3vU885TXr8u3iHB+l4FZKZqkxB2OsP WwSg== X-Gm-Message-State: AOAM53348/2eg9pf+KTC8R/omTPQivUo8eI+44Pjv+hpWGIiforAG1wb TPxZ+OLlQcbEYxM5l9kwGJqRogDqXrid3s3oSYV03V+8S+A= X-Google-Smtp-Source: ABdhPJxzg/n5NVlqOrufksbHXpqRlV8WAeXRnNAEZPw6OAMp8v98iCXB4MrE8RC9pcs2LGHSFGoJA4yFaNMHmvrnuDM= X-Received: by 2002:a2e:9183:: with SMTP id f3mr2795889ljg.109.1615995006324; Wed, 17 Mar 2021 08:30:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 17 Mar 2021 16:29:50 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000004f91be05bdbd284a" Subject: Re: [RFC] Static variables in inherited methods From: nikita.ppv@gmail.com (Nikita Popov) --0000000000004f91be05bdbd284a Content-Type: text/plain; charset="UTF-8" On Tue, Feb 23, 2021 at 3:01 PM Nikita Popov wrote: > Hi internals, > > While looking into various issues related to static variable handling, > I've become increasingly convinced that our handling of static variables in > inherited methods is outright buggy. However, it's also long-standing > behavior, so I've put up an RFC: > > https://wiki.php.net/rfc/static_variable_inheritance > I have now created an implementation for this change, and updated the RFC with some sample code for how one can preserve the old behavior, if it's being used deliberately. I plan to move forward with voting soon. Regards, Nikita --0000000000004f91be05bdbd284a--