Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111085 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 41730 invoked from network); 21 Jul 2020 06:08:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jul 2020 06:08:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 492EE180509 for ; Mon, 20 Jul 2020 22:02:28 -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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (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 ; Mon, 20 Jul 2020 22:02:27 -0700 (PDT) Received: by mail-oo1-f43.google.com with SMTP id a9so3670013oof.12 for ; Mon, 20 Jul 2020 22:02:27 -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=RAWk9poX/Pk+s9fu5srsPjbs4o9GQ0urICsv7MKODzI=; b=ObWFsmnY4hfEyyP3u1+3QERedvTH9BWGumOWDJgnqGQL4GK/7V+7R6VK5gPa3eBzHa OmloA0iYDV7XNTwDFN0vzfwTbCaE8ekibhEBLmD5kuvxkLPlbRtLhFlsemVSsIXGaef7 Xx/6ZTZ0Uig73bNAdRXmOizSH5w3pKrfSahLi7iLDSTKZzAc/NnCscEHeChQz5+yVK4y lTlQ2sPYyc4+tWON43oPTzCYkson3MuGQVf+AIHiuyRpQjYJuLDmmVwYeACdVGf8FDnu 6u6UfGMEYeklopk8IjkrVTDSHObBGIL8AgAtWZ7Okfs+KZAby/u3U0ZXkRbq+LNgYHfD DMeA== 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=RAWk9poX/Pk+s9fu5srsPjbs4o9GQ0urICsv7MKODzI=; b=ZzJmE0saqj9eenJolkL+ZFE3wmWqHizk/pi8vDmub7bz6hFX7TpsKNG4sw4J71u8u8 hel/DFGia9gZ4QdWET+Purs8lFiA4X/GRfPRa9ncXy+b6lk4FdH39SfKrVsFfAqv2+eW EmWrsoJOiormh3XbzTWFB++HsOdrNwRBbxxNaL042+XCTd8Ff9Qdpnibpjyawo2x/PNA K6y/aqpv6Ua63g9rUwC1XcBJuaRe2Q8dyQY+IeDIg1qADiliNkn5wae7iXLrvYo11cLY w3U/7cJVEEB3yBRINteyXD6UYytAKcWeUTo37UE+Z6MZXN1G+9h+N2vjiLzC8XDrtL5s OjHA== X-Gm-Message-State: AOAM530cbs7lcmgboV76s7WamvImQibbb0h4gfRuZilWX41P5wnYOyf3 LP6SFZRnf4wj9XsViXme7DuvpftT76pM9r5T5ik= X-Google-Smtp-Source: ABdhPJzPHoD0jkXIwQ770nOqSnV+b95D176XnXGLAIUTcMpXKJvKbrdjkwew7HHHavZVA1HkEwYiD36tGOKsNQUxjpE= X-Received: by 2002:a4a:1d83:: with SMTP id 125mr22588695oog.18.1595307746450; Mon, 20 Jul 2020 22:02:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 21 Jul 2020 07:02:14 +0200 Message-ID: To: tyson andre Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000088e1bf05aaec8762" Subject: Re: [PHP-DEV] Re: [RFC][DISCUSSION] debug_backtrace alternative as an array of StackFrame objects From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=) --00000000000088e1bf05aaec8762 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Tyson, wt., 21 lip 2020 o 06:54 tyson andre napisa=C5= =82(a): > Hi Micha=C5=82 Marcin Brzuchalski, > > At the time of writing, the documentation in > https://wiki.php.net/rfc/stack-frame-class#stackframe_class is also > inconsistent with the implementation. > `public readonly string $file;` is not actually read only in the > implementation in the GitHub PR. It can be overwritten or deleted with > `$frame->file =3D 'newfile.php';` > or `unset($frame->file);`. > I'd guess this is expressing the desired way that StackFrame instances > would be used by PHP code, > but that seems confusing because some properties of other internal classe= s > are actually effectively read only due to providing magic getter APIs. > (Also see my previous comment about ArrayAccess inconsistencies) > Dropping the readonly from the RFC is one possible way to clarify that. > The readonly was dropped in the RFC to meet the implementation similar to PhpToken where a developer is free to modify all properties. Cheers, Micha=C5=82 --00000000000088e1bf05aaec8762--