Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111083 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38067 invoked from network); 21 Jul 2020 06:00:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jul 2020 06:00:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D279F1804E6 for ; Mon, 20 Jul 2020 21:54:17 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2097.outbound.protection.outlook.com [40.92.18.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Jul 2020 21:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DP4slhQ8yZ8h7DQ4WeWcdlWJ94ETOEGv9iE1iRWUVwgbw4cmAOY3bj/VgvCbjuhTjprLUJTNe7/4UiKdrmEnzfC3bR2WnTdhy/Jvek+ehkRoeOqG5UaXLdWUN1O3XFDjpqz7YFpQdQHuQiv+ZMGHmY9v/8CQFZUd3nzn4uQDWEBlsUST9guvtOF10j/916Z3oOqqDNk3e8u3cjYdLzYXymM/pMWhhhDwktKEkJTDm0t6qW2CgFUpJtcmVY0osOk9Uk/QDoIHIjcvmWC01WUlXsWJtZrmMZRbhOQdsWHI9kr7UPIhAGBxlL32BBNUWga5xsP/IIkPbRbHCvIJPmPbUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I1kpSBTby05bFBOLsVgiPnwSllXpDsGAFldUuOuMqao=; b=Eu79g/j5T7TgJZJOK7iX1/dlA6u/aisFY1TNiw8vCkuSV8QJuPa+dDqoaQzUiEIH+GBU7hfYhL1aWa+eBiNJCzVpGxQZO7kRMbGGWJB3c9Sepf3eXYEcS3l/qOabBkjJaBocmsU2iQMjRZiLCbxtBI2eeJZohccsHkdGPNvB5qB9t0ehree8R6aoCqqRtucuwjAyWnf15e00AdxIxxLoOipXILhHzUSOhv2XguxumkNRsjKYFqHTafFdwHJF05huoWoqa9WX21ZOrzS3oKt4Mvk8zSkkFPT3Ef4UYnHKTlrMzVjudrZe7BrSsi/SGXGAUfvO7reqWwGcIHTUO7hU1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I1kpSBTby05bFBOLsVgiPnwSllXpDsGAFldUuOuMqao=; b=npn0Qr9vk5H2wevbNM4wXbRHDr/zocBjAD73o1QF4prpt4hmUdGTyFkTxzPzkbXIpgfPHLM4KSUwIsvG3IMAyzrC8oFMg6X5Z48Dqve85CJu1hw47g5anjm5fP/39FH2/zXJIk5vvs77+8AJKKQwLcVarU4aMOc2EGb8ECVpCnPQIPdzD8zvxNZbU4ZQAFiblwfjykcjY8MB1h0VOSJB2YfXmor/+CLI3M35fPy8ixuOVhTyM4AiFbTdLh8oQMvtfdyy2n7xo/3N6IagjNf2Y96XXLH1uVGciIEp+n6TMICI+sLV1dxMXc05ClKYWPNf0SwD1TrCTqo01oZRRWrrjw== Received: from CO1NAM11FT015.eop-nam11.prod.protection.outlook.com (2a01:111:e400:3861::40) by CO1NAM11HT249.eop-nam11.prod.protection.outlook.com (2a01:111:e400:3861::153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18; Tue, 21 Jul 2020 04:54:16 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:3861::4b) by CO1NAM11FT015.mail.protection.outlook.com (2a01:111:e400:3861::386) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Tue, 21 Jul 2020 04:54:15 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f0c8:f413:c7c1:e934]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f0c8:f413:c7c1:e934%4]) with mapi id 15.20.3195.025; Tue, 21 Jul 2020 04:54:15 +0000 To: =?iso-8859-2?Q?Micha=B3_Marcin_Brzuchalski?= , PHP Internals List Thread-Topic: [PHP-DEV] Re: [RFC][DISCUSSION] debug_backtrace alternative as an array of StackFrame objects Thread-Index: AQHWXtFgqJP43t0OTE2TPa02/q7m7KkROYlEgAA5HhQ= Date: Tue, 21 Jul 2020 04:54:15 +0000 Message-ID: References: ,, In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:5858C77D7BF88A23D39CEB1B5700753156FDF570693161E8F37E0F150036BA77;UpperCasedChecksum:8F764C52D9296A7D8E64C4D7F4D8221E0AE05D9B06D93FE9F710C8A339CCC069;SizeAsReceived:7385;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [O9G0fcTDfLo+5BvbcmtqnOTZQgEQ16VjQPrbxlHBW4DDob/X0F3V8VxeYwtptMWw] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: fe6af1d4-e557-4ae9-209c-08d82d321eac x-ms-traffictypediagnostic: CO1NAM11HT249: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6GnnpsHZCTYvLbkDUsJBK07W5NoMoCqqShzLdD1wHRyVw5UI+T6cDrNnQIqIIw8LqhZeg5HloKHeqxMRQaVLo8yX8QvimizWcRtKPaP6umIM3/1Yiyjqm9jHr2n+QT8BZ/hqfhRtAWAR/5HJYt3tH4geYNFSK26sLnYn/Z7UtskFZYwR7w9qSY881lQK3rzpEUNQaC2Ftn8ad+4XIabf/Phl+wVqAxgtpYOYqI6DXpvRvL9OD2211t1hASq4Bf7o x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR07MB6618.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; x-ms-exchange-antispam-messagedata: +qb6D4M1XF0gw2mtnbqfbPi0crglCyMOmCNgO3jeEiXA2A2wO06A0pyaHekTy70oJ/FcnDQmKSIVDRyH/rprpBGPm8xgrD/BxBH+exUFlEuJbeFIQyMI21QUfS9/E8qTujP5tDbhyX139OutaALBcK+C9akvWtbTyaH2mOpXQIeeoji7peeVdGz6smbIMoJg72tFZ6DGs+XjpnpQ5udJGg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT015.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: fe6af1d4-e557-4ae9-209c-08d82d321eac X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2020 04:54:15.7987 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM11HT249 Subject: Re: [PHP-DEV] Re: [RFC][DISCUSSION] debug_backtrace alternative as an array of StackFrame objects From: tysonandre775@hotmail.com (tyson andre) Hi Micha=B3 Marcin Brzuchalski,=0A= =0A= At the time of writing, the documentation in https://wiki.php.net/rfc/stack= -frame-class#stackframe_class is also inconsistent with the implementation.= =0A= `public readonly string $file;` is not actually read only in the implementa= tion in the GitHub PR. It can be overwritten or deleted with `$frame->file = =3D 'newfile.php';`=0A= or `unset($frame->file);`.=0A= I'd guess this is expressing the desired way that StackFrame instances woul= d be used by PHP code,=0A= but that seems confusing because some properties of other internal classes = are actually effectively read only due to providing magic getter APIs.=0A= (Also see my previous comment about ArrayAccess inconsistencies)=0A= Dropping the readonly from the RFC is one possible way to clarify that.=0A= =0A= ```=0A= final class StackFrame implements ArrayAccess=0A= {=0A= public readonly string $file;=0A= =0A= public readonly int $line;=0A= ```=0A= =0A= The first time I've compiled or looked at the implementation and RFC docume= nt in detail was this evening, out of a curiosity of how it worked=0A= and to look into the performance impact to expect,=0A= after seeing the vote announcement this morning.=0A= =0A= > Sorry for the late comment - I'd been busy/occupied with various other th= ings and this RFC fell off my radar=0A= =0A= Regards,=0A= - Tyson=0A=