Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118838 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24428 invoked from network); 18 Oct 2022 07:32:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Oct 2022 07:32:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 542DC1804AC for ; Tue, 18 Oct 2022 00:32:05 -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.0 required=5.0 tests=BAYES_20,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/20 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Tue, 18 Oct 2022 00:32:04 -0700 (PDT) Received: from [127.0.0.1] (unknown [85.255.236.171]) by xdebug.org (Postfix) with ESMTPSA id E332810C22E; Tue, 18 Oct 2022 08:32:03 +0100 (BST) Date: Tue, 18 Oct 2022 08:32:02 +0100 To: internals@lists.php.net, Tim Starling User-Agent: K-9 Mail for Android In-Reply-To: References: <22177032-fe72-c39b-63fe-fa4368a70852@bastelstu.be> Message-ID: <55F182F5-BA73-4224-BEE8-26C393078284@derickrethans.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Improve unserialize() error handling From: derick@derickrethans.nl (Derick Rethans) On 18 October 2022 02:26:59 BST, Tim Starling w= rote: > If I'm reading the implementation correctly, the original exception > is thrown away, there's no way to get the > original message and backtrace=2E=20 > That will make debugging more difficult=2E I believe that is not true=2E It should be wrapped and accessible through = ->previous on the exception=2E=20 cheers Derick=20