Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119723 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86928 invoked from network); 16 Mar 2023 11:53:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Mar 2023 11:53:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D71171804F7 for ; Thu, 16 Mar 2023 04:53:22 -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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 16 Mar 2023 04:53:22 -0700 (PDT) Received: by mail-pg1-f182.google.com with SMTP id z10so741248pgr.8 for ; Thu, 16 Mar 2023 04:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678967601; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=A6KA4VFAHpv7p2BYgQlnWFK0RdyOlI4QIfOW8Sx9KNg=; b=auALFCenyjeRhE6VyDRmELVi0yqjQozjSY5lHQiIF9SZY1OqtwZ2b5b7fGnrB8Vse1 etUSTwmX3VxEnw2DqnH3hfoviYdq8iBUd+S7PutmEfSo5/8PkBsnL3XoY0G4k/TVUH+O zDYuR0t5eWl9cUiaxdKNdF1nC/HV0m7dsSspB3/CmfnTyUh4ZokJ2myMG30PZ/AnlnYy 2lUMweFOF9jyoLMdSiqXG0Zvu63CxQyO2PokjfhXiyqB2Of/A78Le802CRjybxRh37Ts 8vWHuSiJb+6jTImRuaKgtO1HuIb5bgp/gNpVn8PwlBOXuN3Q/quiqepnK5PuMTO4yRoM FzAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678967601; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=A6KA4VFAHpv7p2BYgQlnWFK0RdyOlI4QIfOW8Sx9KNg=; b=Bk6dkKqqrlmO7NPHSXGPLPTMI6VMexA0FZ7BbsD7kkEyTCNXEzuiKEV7rWrho6p2F0 u/PkVeJX8gFsQXhai1NQFpSCpkBveJIaPA563fYXpUe0V5Gpa3nJurnIKtYvQlw1LeSf p7nP9fEhS6NtEKr4JKSQgCxAngxm0Ou+UfjpHgEDjtJuBEsccKng64MW4m+kTIYPkVHf 19G3tnKvA53AfKfLn+81QENPVh5BO1I/AGcqqiBHzN0oLjKvbmfqDgJtkRjId6/xvnqC /zQKmwEP/KwOU6DUYM3O3kHxjRh2caHwznpd9jH5h+c0T94YXUtdOhnw1GBT93W07Jp9 HoSg== X-Gm-Message-State: AO0yUKXckVvDtZtVYd1aRZFqa5YeKbRKPZZDxQbTIXvU72Twsh4R4k59 Nsp+dbfWRj4UAcXO17fl/j5UV7Dn7X/Ib8uOCnZdYMvjX60= X-Google-Smtp-Source: AK7set+DfGDp0OAT7dgwi7vnVz8Zh/MF0pS1YYUvORVKo7Iez7xSjjYbcWVvq8HfnNhJ2vd/XRyAAtyxLlUA0f+W2ws= X-Received: by 2002:a65:420b:0:b0:4fc:7e60:d0c with SMTP id c11-20020a65420b000000b004fc7e600d0cmr730194pgq.11.1678967601484; Thu, 16 Mar 2023 04:53:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 16 Mar 2023 12:53:10 +0100 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC][Vote announcement] Arbitrary static variable initializers From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Alexandru >> https://wiki.php.net/rfc/arbitrary_static_variable_initializers >> https://externals.io/message/118976 >> >> There haven't been many responses, so I'd like to put this to a vote >> early next week. >> > Only a small thing in the example for "ReflectionFunction::getStaticVariables()" section. > I expect the third var_dump to print 1 also since the static statement is not going to be executed again when calling foo(2). > Am I wrong? Nope, you're absolutely right. That was a mistake on my part. I adjusted the example, thanks for pointing it out! Ilija @Alexandru Sorry for the duplicate mail, I forgot to press Reply All.