Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114429 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96218 invoked from network); 12 May 2021 09:04:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 May 2021 09:04:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AE6DB1804B5 for ; Wed, 12 May 2021 02:12:37 -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=-0.2 required=5.0 tests=BAYES_20,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-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 ; Wed, 12 May 2021 02:12:37 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id z13so32733780lft.1 for ; Wed, 12 May 2021 02:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=hBx8dQjrLaEd4xiuwe9T2ubtYDEWG60S4zNwg1rB32s=; b=cGJoaACcgwLnNaYw8z0GF2hx0MYqmpUFhfhMKQ7SGWXTck0X1mq2gCQMvTdFoQvyF0 jN6oSOL/RyVVV43jjxiEhmffwODwAfIZezFZY/p4mHo7H+De7V1N2B4OCiycnHB447/Z sLJNyGTkTulSk6vV+xATpIynckgJWBMhjtSMvIJOCEzsjIDFUwm1MnpJicT8NIwyWWCl 9tfniKFIZN8m3ccZb1IdoF+XkEBguqTqEqJHvphsjCMn/frViRqgdDJ3Ov47ixEFtjV0 O4j3FUFBLvACL524BcB9bgVVMLU6OUOdQQo4GSELFk0HqaMzZ+rIvSPyyfkCC1LEP/UT Pxvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hBx8dQjrLaEd4xiuwe9T2ubtYDEWG60S4zNwg1rB32s=; b=rBcxGAum3CbAZFOmDmnwc0Z+w0HoA/W2aKxrmZ3j/vdF6SvYmla0JD8Cby9gVu8UZq gwc+w0OqivHyYH5mTVtTmj9/QZhG668qm6sMzujNq9na/n0Abx40ORvSZcp2oHwSOCij kypRVmTfUY2KJGJYCuhLcbt73n6wUyOV+uRLPYHwVNQQlHfPBdKkQhiT7UeQv9RwvWOv JIZze/ipQCKVGvVRZifYqJOcFxvR+3+ek68N3eGTDk3W7XtGp6y9PN7WkgVoRSUE1aVA tfzr8M7ofHDkHtHY7l1GPHevY/X7O7kHRuUGsVR8ykiCD29zJ1sa58W6fDFzPibKXffE vPJQ== X-Gm-Message-State: AOAM531H2VHiWlpG9d0AXVCms+TyYn2o2dgZg1DrPh4o+gEJb1fhcV+9 7VwouzmBRHcfxl0MexHeV4aQQOTfAjBrXV8qh+I5z2rUiCfsew== X-Google-Smtp-Source: ABdhPJwC/Hgd7dVKPSJDUrGgaLX5y6tiV+MUeUWrWnko+DCbleiC2BlPd5dKVSn7z9Oj2euYqC7NEjKoqKQvslQ9XtQ= X-Received: by 2002:ac2:5e25:: with SMTP id o5mr13201649lfg.638.1620810755612; Wed, 12 May 2021 02:12:35 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 12 May 2021 11:12:19 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000005624ee05c21e6977" Subject: Forget debug_print_backtrace() like exception backtraces From: nikita.ppv@gmail.com (Nikita Popov) --0000000000005624ee05c21e6977 Content-Type: text/plain; charset="UTF-8" Hi internals, For historical reasons, debug_print_backtrace() and exceptions implemented their own logic for formatting backtraces. I don't think there's any particular reason to have different output from both, so I've put up https://github.com/php/php-src/pull/6977 to use the much more widely used exception formatting for debug_print_backtrace() as well. The tests there should illustrate how the output changes. Are there any concerns with changing the formatting of debug_print_backtrace()? Regards, Nikita --0000000000005624ee05c21e6977--