Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130471 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 lists.php.net (Postfix) with ESMTPS id B124C1A00BC for ; Fri, 27 Mar 2026 19:20:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1774639259; bh=N44R9LYozwh5wzsfUvxpWDmPLbxL9/1u19gOM8mBt3I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZuyxPfHqZn+8E2cFx4fDxLBJIuaVHTE7YkueYJI0mBMUrKVgaFjOmPYiYJSZAcYRZ xmjRcpZNL0JGlK+eT6s2fY3A1CwoC9lsgw24Hn6qeOLJPbKoPXhJ1oo1ob9VgdJuxf TvEdEULsh2kGc0nKgg5F/qa+S5ix6NuedUBneE1pIt2rHE6PG5TtliHsgQyX17XN51 u6ytLz+k1dUyH8nOt4tNJOpsNJUV20X/Pr84/JTwJEGmSaLFgJQwsER0ogQotsES7r NjVPDtpDx1mFYi+C7bHB6x16QiqB3oqPXLd6c+J0y4QMNH5EgpxPscvxjOYl1mPeb5 m1HdoJt4+P7Mw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 44278180088 for ; Fri, 27 Mar 2026 19:20:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Fri, 27 Mar 2026 19:20:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1774639251; bh=3Mx+t87wWmBzQCWuZYXnZVNVaC3/uTw9ol6Rr40m044=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=G0zUmJa8FtqDM2s4Bt9zWrWjPs/vIuPo9knNd1Q7NVlgh08PtUTNF3jcUDwAV/SXU disxQOfJuYCTAndEy5Do3Be0KNtKMu8HLBVoet8ez+hbqluyoF+Y9gwTHSJ2g5Vr2G 1qJKlaSK9N2sxuxA+W3IMJjfjEduEV71PnXk0BO/pkT7MF30OEtCT+nVIpfEkrN2p/ 4RD8/2gkmwtM1/iXUFw2du0YifX2htStOqrqmBTXqXW9tA9RuqbvY2Zp5I0OsT/8dd fmFk65oXQE8HIX9gNN26zBDTNdF46+/gj7OWz3CuoVdYwmVFaUEK3Shp/DR81PR1By C+3PuUiY80Uaw== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 27 Mar 2026 20:20:50 +0100 To: Edmond Dantes Cc: php internals Subject: Re: [PHP-DEV] Debug information output in the PHP debug build In-Reply-To: References: Message-ID: <4bebe57bbfc9c56b6b81147a72452690@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2026-03-27 10:35, schrieb Edmond Dantes: > When a regular PHP exception or ASSERT is triggered, output two > backtraces: one for PHP and one for C. > To avoid breaking existing tests, this output could be optionally > suppressed via `php.ini`. I don't think having a C-level backtrace for a PHP-level Exception is particularly useful. It will usually just point towards the ZEND_THROW opcode. For failed assertions, PHP will already abort, which (when properly configured) will result in a coredump that can be investigated with gdb - and if it's reproducible you can just run in gdb directly and don't need to rely on coredumps. PHP also includes a `.gdbinit` script that provides a `zbacktrace` helper to generate a PHP-level stacktrace from within gdb. So I don't quite see how including C-level backtrace generation within PHP itself will make things easier vs. just adding complexity. When developing PHP you can just use gdb, which will also allow you to step through the code. Best regards Tim Düsterhus