Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110887 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28770 invoked from network); 9 Jul 2020 08:18:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jul 2020 08:18:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4D3C21804DA for ; Thu, 9 Jul 2020 00:09:31 -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-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (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 ; Thu, 9 Jul 2020 00:09:31 -0700 (PDT) Received: by mail-oi1-f173.google.com with SMTP id l63so1069822oih.13 for ; Thu, 09 Jul 2020 00:09:31 -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=bepqpZ0CACsbVpuD+0Kmh7bUgLUpfDlkyKsg4EJ1sF8=; b=Si//BbXMXPogmXq3f7s3DyUWmwVzOeMD9CpiUnFHISiEhZKwzDF2LFMefaFaIMbVIU OPL/Zp0hlPTK3bms8fYSX05ie0Q58mp3VEmcV6I3pVjvivFfTGdgtbq9DjWtCfP1/ebo 2KT/8YrOsUbnvLoRXgsPasr4Qx7i8N8V7pbzc6tpFf1kw+iq6NeTcro5dC/sukF9M01P dJdBCo+Z3pOtMIdejbotlHz11c7TBpk7sEkkteZOkiYMfcORNXozo3m9JEx5WPvmUZlG sa8SOoodK2BmlaFRpK1ABBtxA3RkUKq/nEEdI5+7wB0IxxjSxTyLf5iv5MnWyDhKzThV hqOQ== 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=bepqpZ0CACsbVpuD+0Kmh7bUgLUpfDlkyKsg4EJ1sF8=; b=b/DCgolWcgYCokBs/y9+fbz8UfbOjTmK9VMXO9XxIpYY20UMQietW4gl4LLN5rSK0E yjkuzmwG0WMzs8joW3OcfpjlhKlYRUPzkx70IjwBsiCW0AQsRCx5YIYPBrX/zK8jAous r/WlvRReEAxHApTPGxeXidlrXEOV2MPe5aohD67JwJxJFBLzVKinbtU9+WsgvYzFYUQW 7HqbVXUdQ0fBD5yALGvPNyFEPkI72HmPiuFZ8ndNhv0FqedxeWkdzMxdZzOkIjzM8XW0 bbpCIgNOL638FhJI1rEbyf04nAK1XExIqVgst52RT/cLY23FBrs03kLQWcNHrA0qb8rN iIHw== X-Gm-Message-State: AOAM531Mna8QCbg8JMyydgn0bPHssG6pTiUAuylAj1oOpxPYcPcnTgBo cxO5MMeybn2xaFj3A6VD3GkVvWyqAVzn3PcfZXpRc491 X-Google-Smtp-Source: ABdhPJwnQDhTirmFbDUz3g5cm0BS1KL/uSt5KXe4ywWFQHHsQPLfahiJLEGRLSQ+7jEUkpeoY8Mxk4UqQ8QW0j/3siM= X-Received: by 2002:aca:4ec1:: with SMTP id c184mr10344130oib.112.1594278568768; Thu, 09 Jul 2020 00:09:28 -0700 (PDT) MIME-Version: 1.0 References: <9BAF6883-A16F-44D2-964E-D4E7297E5296@newclarity.net> In-Reply-To: <9BAF6883-A16F-44D2-964E-D4E7297E5296@newclarity.net> Date: Thu, 9 Jul 2020 09:09:17 +0200 Message-ID: To: Mike Schinkel Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000c3b9be05a9fce740" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] debug_backtrace alternative as an array of StackFrame objects From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=) --000000000000c3b9be05a9fce740 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mike =C5=9Br., 8 lip 2020 o 22:20 Mike Schinkel napisa=C5= =82(a): > Yes, excited to see this. > That=E2=80=99s good to hear. > Would adding a method that allows getting a specific stack frame rather > than the entire trace if you know which on you want take up less memory > and/or perform better? > > Something like StackFrame::getFrame(1) which would be functionally > equivalent to StackFrame::getTrace()[1]? > Indeed, this makes sense. Since I already consider adding an `$offset` parameter to `getTrace()`, adding a dedicated static method will be trivial. Cheers, -- Micha=C5=82 Marcin Brzuchalski --000000000000c3b9be05a9fce740--