Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126110 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id E2E721ADAEF for ; Thu, 5 Dec 2024 20:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1733432102; bh=mBA4pgmtgNhTx7WmMuOMv+7cYVAIWfhAJRmGtj/oxks=; h=Reply-To:From:Date:Subject:To:From; b=jLdl6DZdTqLIyKiIkBz2jIcwCm+qis1q9nHoPjPE8RqxxsUFeCBOgvBvfsiswdq/u lfrWyhvBMb8agB//FaoagTrx3vpJ5xXtwdfphCPr5+VAN83trxlFnH9cN7KgsreMw2 11zwFDN57UvkZipenRGTDCpyglqPvWxFqMOS+ZA5LoxMCWQl3dkP4DFzQ5+hiEkOxC m5xeYOlKfKDItmRunJTIi2CRYWborjDuy/QeX07y2Sm/2mwUz8uHLV7ZFJgmkY8xfF eQQT31aJerJgP4SkEO9mJJxrTATpWgrcBB+1BOWKfEQXuXfMMTlx5iH4UQBlwl5duG /cEzBqNvyltjA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 58A9718007B for ; Thu, 5 Dec 2024 20:55:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, FREEMAIL_REPLYTO,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 5 Dec 2024 20:54:58 +0000 (UTC) Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-8418ecda128so47897039f.2 for ; Thu, 05 Dec 2024 12:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733432284; x=1734037084; darn=lists.php.net; h=to:subject:message-id:date:from:reply-to:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=mBA4pgmtgNhTx7WmMuOMv+7cYVAIWfhAJRmGtj/oxks=; b=kCkGLgetS9YUabpoXAtoeKc5CiAhMvSRYdS88PvT21g0f78ToZntRXjlN3TFtUgSpa hJqSZ53JZCvBmAqZOvPCZT9aomJCWy2yKqmHv2BfbUwHQIhDPsZb10IpiYSzY3aec0Qo vdxJDwsAuJnVDqgRHiKv3PnhfMoNsKrR23qLTSeqsVu9ikgm8bILNdn3EYmgGqHsVqpT jDIEeFo0pA5zeypr6En77u3B+nhkf+fmdQTW7X1t22Vu2ryemKEpa7unADmc6pfTjkVv GUHFhNpLZuTGJXfezRebHsblD2ACdLY5L55Wi6a/FSpseOH0n202Z6gHOCEimUzJD95b 5Ptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733432284; x=1734037084; h=to:subject:message-id:date:from:reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mBA4pgmtgNhTx7WmMuOMv+7cYVAIWfhAJRmGtj/oxks=; b=r2AsGPlt1jk80++pDEr81M4n2eOFrs6t3usyP3bz88Hp2Lgyb2to+T8wxOMSXZ3jt5 5OfwK+ACnFZTrwP1rnBoiiDgwwwqRq+YjGsEvLt5IA1eSJ8/7OzF2Jf0dTIc/0U/lbzR M78AMI4ld8URKtpzKcG3GgUWsRJVKbYnM1VLqnc4H80s8i2vQHBkiBBMwyi49/THcE71 vYVcgXlWDewKURuSH0fmciNUxfEl0zrNccSeFofJj7mxkKl1ozIbIhRVMi52vskO5o1a kfz9eGqeVNvc/NNt91ltN2gIt2gRSw4Icv51ZsCyJ/8nNnqtAKc0QbNv6Z5r37fnHTke z/6A== X-Gm-Message-State: AOJu0YyBq0F5ZjW3WFadKgKhcVAXbugxrOJOKlV/gSwtSEOCNkYaLePZ OStrkvGkJUzHSiFP9o6BBbjdVmjqGNbgDuzZ76Ey0hVvrLxscuLxue8nPt12GUeYsk3f1+YM3fD aSJ+KfWn2ql9RNxARyk6ubVWB/eS3B0AN X-Gm-Gg: ASbGncvXg3AzQ6RmFkIPNaOUl1TnaN9yGz/PW8R0JBzcSFHLxVIyDTsH5JKsSsZgGVP cJBhbWK2x/FUXQEYJYrWtNNuoP9uMgQ== X-Google-Smtp-Source: AGHT+IF5HB5AEEeSS00JvC/Ey1JJ9QvtNBYh0ZXSqygPy5+QiwPDmRhyaBPuaN4GsmGLOh8a9PTlJ1rY6DYZ6biw81w= X-Received: by 2002:a05:6602:2b85:b0:841:a9d3:3b39 with SMTP id ca18e2360f4ac-8447e21bf9cmr96603239f.5.1733432284133; Thu, 05 Dec 2024 12:58:04 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Reply-To: erictnorris@gmail.com Date: Thu, 5 Dec 2024 15:57:48 -0500 Message-ID: Subject: [PHP-DEV] [RFC] [Discussion] Error backtraces v2 To: PHP internals Content-Type: text/plain; charset="UTF-8" From: eric.t.norris@gmail.com (Eric Norris) Hello yet again internals, I'd like to formally propose a continuation of the original error backtraces RFC (https://wiki.php.net/rfc/error_backtraces): https://wiki.php.net/rfc/error_backtraces_v2 We recently had a production incident that might have been shortened, had we been able to identify an errant infinite loop in our code from the backtrace of a PHP timeout error. It's likely that there are plenty of other error conditions that would be easier to debug with a stacktrace, too. The original RFC is inactive, but I've read the proposal and resulting discussion and I believe that @nikic's suggestion is a viable way to address the RFC's issues. I've implemented that suggestion here: https://github.com/php/php-src/pull/17056 The RFC currently has two voting choices, the first is to accept an INI setting to configure an error mask for backtraces, and the second is to choose the default value for the error mask. Please take a look at let me know what you think. Thank you!