Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111089 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73060 invoked from network); 21 Jul 2020 09:47:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jul 2020 09:47:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C5C26180537 for ; Tue, 21 Jul 2020 01:42:02 -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_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-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 ; Tue, 21 Jul 2020 01:42:02 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id j21so11235462lfe.6 for ; Tue, 21 Jul 2020 01:42:02 -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=pMRcwH0Bkv0phqsz1Tgzf8i5iEvaD2+YgobWtBs/y5g=; b=SV5Uq6yZYgJjTFdDnz6DgNBlq6LaUulks55D9AODQWI07A39eRARIwRPLgHjME7ris n7XzjxTAJtIiv3H+Tn8K+Npx5mfpTKJhni5TEY/AEJHDYkrL3uhXDON8uAZFjUXQEMuL tF/JG4KJJmV3HSuauR4MvGwOy3LOSsKeoL1y3ecsHmUCMrhB9FYn5k3X5xcwT6sQnFUA z7OmalCbvKnFFHyC5Ey5Z5OaqAsDot+v9FA1Iuzrr+F3YwNd0DjmHtkvWmsBzjLVYASP RTuLHTD2whkcaq/HJtNfaJkgNYi3Dt5nDah90xNO4olTm7YiY3qt996LWAh64ErQzrUL 1Z3w== 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=pMRcwH0Bkv0phqsz1Tgzf8i5iEvaD2+YgobWtBs/y5g=; b=hXK32WpqKEo/iuWjSBwLR1UVrZ96w1Sd9xgGN4BrDxBn3WcHuvmzDw+6yDDMQKbOgw n0UhqfuMwYNVqvSL8igRzbQyoNJQjZyV2lv1+6ZNfSYUaLcEkiUz/u4wngVaZ0T4Zbg/ Wn0OFS/dP7ayT5ZT4Smpo+pp3gCtTA9HFw0uVahltpnoRaXuY3bLWoLtGKZl26YcekuR pxoJ80+lV1xJQ15AHxKJ1Nda5G6BZiiIxcRDo1mjStGvuiNC05LtNzVSxfaNkyayTGd4 YJ8YLBnZ8ea8o6ZR81lbshBJ9dI+FCEF8B3oYc4HrjiU+yXHqpsFi+M0TfuE2SyrX488 rspg== X-Gm-Message-State: AOAM533W2iX5BP1DFk61F3OAo9pZQ41BNPwTq1PZ+sjHlw8qiMwATm7G M+rsC5tneSfSgsci1qLxLl3WEQsVq3HUZlY9TrU= X-Google-Smtp-Source: ABdhPJzIHPTUYpHG451/f1c4+lsBBqYi8v9/96a1X35xTwIfFCQiYgH3ROaxQkdDP/eW1jWvH9W79lSjzLthbmf1FRI= X-Received: by 2002:a19:4c57:: with SMTP id z84mr12357300lfa.92.1595320915902; Tue, 21 Jul 2020 01:41:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 21 Jul 2020 10:41:39 +0200 Message-ID: To: =?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?= Cc: tyson andre , PHP Internals List Content-Type: multipart/alternative; boundary="0000000000007ec3ec05aaef98e9" Subject: Re: [PHP-DEV] Re: [RFC][DISCUSSION] debug_backtrace alternative as an array of StackFrame objects From: nikita.ppv@gmail.com (Nikita Popov) --0000000000007ec3ec05aaef98e9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 21, 2020 at 7:14 AM Micha=C5=82 Marcin Brzuchalski < michal.brzuchalski@gmail.com> wrote: > 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 > Why does StackFrame define both public typed properties *and* getter methods? One or the other would make sense to me, but not both. Nikita --0000000000007ec3ec05aaef98e9--