Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111087 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45404 invoked from network); 21 Jul 2020 06:19:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jul 2020 06:19:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 625281804D0 for ; Mon, 20 Jul 2020 22:14:05 -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-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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:14:04 -0700 (PDT) Received: by mail-ot1-f50.google.com with SMTP id e90so14156743ote.1 for ; Mon, 20 Jul 2020 22:14:04 -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=bPzL/DzosUoEy21WBJLs9083lWDHZK0xTfYSNXfa+Mo=; b=JFCBhNGnF6juozxTySYlwI+WkqiwP4ap0SfhkYXCWKA6jMMv0UdsPHO/p7BzKhtWjn Z2C+MKs4LP21DepYQbQBxx8g8LD0czsuX35pTWBKohw2dyKpjQJuXKLrsz/bkkzMTsPc BzLsvrva5pJIHueaUDlOVG/Jj2qbacbn0/HNlDL8745u3Di5ScFUA+365C0CrZnn4fak JihdiUJul8OMAF2oNQV4K/xt8CcIeVQrzuSP9tuDY9lhOJPqyFL+P14zBY/XkgQ3WaEq /rJY7vcjYOa6LBcZ+gVDtNk52Uzfp/UNU5F22uzuZ4sZjEkl45iZ6MH0rYccv32C92rz Ot/Q== 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=bPzL/DzosUoEy21WBJLs9083lWDHZK0xTfYSNXfa+Mo=; b=SdzXLh079uaWrgRnCtvnn9MlPkuXeS0tvXTPuA8gSud9YXHRBw7+lXwU/Pr+UZrJbA XB7ouK74uUBMzBsaXPrSe/lOzcp4tCJELA81it3I411puM42Jyg5HQa8dnv7JovLxLAL gFRRqIU7+SVu5f+uY2vRe9XuL90bk3oIlqwF7wHYgr+MGHtHfTig1gWChQ/sIQ/BgUKh tzCdOIhSVMUFveefPXZ5IXpWo1QWPMWAxcONuy202XO5MUvr6+/N1Eswse1tHvdIuWsZ kNnNWTnNwhAImEitf49FrKCB/GEZm9hhxWIt+ac/HneE/M3xfSXSHZ2huwzuRiN+uXCX H+Xw== X-Gm-Message-State: AOAM532qfOkmzSMtlQd1UmaK1c9jsVa/mL+aEwF8xbyTqLETzw0lspWX zOBiKiKgv72aYSqVAqD/J+XJyPXpafSSyeK45xU= X-Google-Smtp-Source: ABdhPJyD0t05PNWMYXYkCiZbaNdy1sIKBUisLch45XpPQXF2S1QGvRm5+7CKgzeGO3tvYWnFeLULVt7+GPFMSuOGK2k= X-Received: by 2002:a9d:68d1:: with SMTP id i17mr22502998oto.182.1595308443300; Mon, 20 Jul 2020 22:14:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 21 Jul 2020 07:13:52 +0200 Message-ID: To: tyson andre Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000011f61705aaecb1b6" 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?=) --00000000000011f61705aaecb1b6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable wt., 21 lip 2020 o 07:07 tyson andre napisa=C5= =82(a): > > Can you give an example of an internal stack frame? > > A stack frame that was created by a PHP internal function instead of by > userland code, i.e. one without a file in the frame. > Related to > https://github.com/php/php-src/pull/5820#pullrequestreview-452080212 > > > ``` > php > array_map(fn() =3D> $GLOBALS['x'] =3D StackFrame::getTrace()[0], [2= ]); > php > var_export($x); > StackFrame::__set_state(array( > 'file' =3D> NULL, > 'line' =3D> NULL, > 'function' =3D> '{closure}', > 'class' =3D> NULL, > 'type' =3D> NULL, > 'object' =3D> NULL, > 'object_class' =3D> NULL, > 'closure' =3D> NULL, > 'args' =3D> > array ( > 0 =3D> 2, > ), > )) > ``` > The RFC has been adjusted regarding the nullability of file and line properties and related getter methods. Is there anything else stopping it from getting up to the vote? Cheers, Micha=C5=82 --00000000000011f61705aaecb1b6--