Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113267 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29836 invoked from network); 25 Feb 2021 15:57:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Feb 2021 15:57:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7C46C180503 for ; Thu, 25 Feb 2021 07:46:22 -0800 (PST) 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-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 ; Thu, 25 Feb 2021 07:46:22 -0800 (PST) Received: by mail-wr1-f42.google.com with SMTP id v1so5705918wrd.6 for ; Thu, 25 Feb 2021 07:46:21 -0800 (PST) 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=W2iPHJ5QjVEdw2sR1pCUCP9vdSsd9MO6z1BLRiVZabA=; b=uN3Nx1HIZY7AmVCjD/qnCDmyBmyeKFj0ujwutP+US7ZrvCE0rG9zWzlkL4eHGtep4w oUEl1IOg0CVUO4KgOFl0vD99jindpq/NL5Syd1eSmaejPSqU/16UY5ikWXDv31K3Tphx oEDqKAYHLlMuQI7FHDMGVM3DwolYvPsirmfPwCKjPXJaMMecbN8IyrwBAQIa9ofrI0Mk grkRlrSR4a6Ze3w3h1P6tCeMgicXuqfMhip7HVNoY3u2F81NWZCvog3zqpF1UolfWD4M qaor88FP1R7LZM6yWG9tMhsLjJ0wUrne3rUSMMVI2jTrx9DPdQ7XJBV4xY9RTaCQG8rF ew9A== 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=W2iPHJ5QjVEdw2sR1pCUCP9vdSsd9MO6z1BLRiVZabA=; b=eMzGOnt6G+QPG66kzVE82XQAG73/vSodQn0uOqSY6wicMFFOXBjxZZ66ezsU8kfdzk VPiRvP99lW87qxL8zccIHpA6HLlc7hTrYGdXUjYbm0M0EBpekJMJI+ETIiwlJ4yx+j7D oWF7nh7a8QDAdIFF2Xn+UxBDHsiswOTJT0Y1gLor9CZ78be5yXpUtLGaZj88xOx4EcAt LGtMz4bCaGwUclpnC+msB9w8dP27YybrYvVnFit21UTfXLBUROWLlJ0kxvmeVJFS/XLC QnKabq2sHwJmdIWuvy0SUNIbE5dSWfyCKihB1TNJNbuL3QLyTlLeRxorAnDygNWplXf7 bMWQ== X-Gm-Message-State: AOAM530UWq2gbTAG4zZatd49MCdNRTyccdPyN6DEd+nyyNBJ7a2Q6Ms4 s1L52LmmJn4YbovPz8xMNn7CLEDxAl197AgHCU0= X-Google-Smtp-Source: ABdhPJx4AwUNwLLyThR2vFx5Wu39BpLWjk+ov3cGXb7BOADsUoFdo1uVszMvP4fCJzzlmxyMm2rSn8vJWiCeyym35Og= X-Received: by 2002:adf:e585:: with SMTP id l5mr4075726wrm.85.1614267980813; Thu, 25 Feb 2021 07:46:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 25 Feb 2021 16:46:09 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000091979805bc2b0d0c" Subject: Re: [PHP-DEV] [RFC] Static variables in inherited methods From: glash.gnome@gmail.com (Glash Gnome) --00000000000091979805bc2b0d0c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dears, Let me briefly introduce myself. I have been a C coder for 19 years, including 12 years with php. And I also do Java, C++, Javascript... from time to time. Nikita, What would the equivalent of this code be after RFC modification? a =C3=A9crit : > 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 > > Regards, > Nikita > --00000000000091979805bc2b0d0c--