Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118567 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76556 invoked from network); 5 Sep 2022 21:12:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Sep 2022 21:12:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D8AA5180339 for ; Mon, 5 Sep 2022 14:12:39 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS19151 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 5 Sep 2022 14:12:39 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C6A525C014B for ; Mon, 5 Sep 2022 17:12:38 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Mon, 05 Sep 2022 17:12:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1662412358; x=1662498758; bh=9rgo42EK2TFJ0SvCDduG+WZK2 3fy96TvkPYhbTT3/mk=; b=Y36/txfYy6DEUKXS7rXLCt6JxeehAZVbffVyswceS eMQPFjMYd62yHnkAksPu0UDk8wSwnf5sJsQ6AosWsXrwa3GWziUbLjWCT3pOuZ3O x1J0BwuuH9h6aSJga738yTLBDR8gVdbZPCLK5FDwrdjr7vWqT6RiAzFih7rBK3Il A15Q9nXhNC6KhFDB4CuTRGW/opPfotSAsz9S2hxGlsjCSOTjflyTvqCBc+N01wPq llsCg1QFj73Ji+hVgzpCAabNml8TOh6zWJIokj3kOHdd70zXTcgajWF9tWbfyEgn 3lSYRIHNImE6Er/u00vJFSle1NM56svgGi6ZtGqqHgiWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1662412358; x=1662498758; bh=9 rgo42EK2TFJ0SvCDduG+WZK23fy96TvkPYhbTT3/mk=; b=sHQEzYoUB7M1fGGVw jcW/I8By/iwDmFG97RT0KJGdi2QVmCLy1aedNzFY22R/4KZ+MvmupXLzQoxzGXqP AQm7mqgFrraA4Cg1uJ/RL+w0sKcl1zyEOcmRweFqGOjbqXbP+ktNeNghPVUTF79h fPcXgALklOWyTyDtuWL3ZjSyNtLXWQE7b9skkwYHZRiFZxROWG09oVoSjJFFhVAJ Q2Z8SDHRD+rIAAtrqy2VUlQfrltg51MKPSskKC+ExatBi3BlgNzk2zdKtjD1G6YZ vJqWBjPAInuRmfyG9XU62V2vkeo9KDNxUMpiAvd9buqNupP/WrdaqdsKmF8069te dDivQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeliedgudeifecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfn rghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrd gtohhmqeenucggtffrrghtthgvrhhnpefgudelveehheetueeigeefudevfeejkeejjeek udethfekgfduffevteetheeitdenucffohhmrghinhepphhhphdrnhgvthdpghhithhhuh gsrdgtohhmpdgvgihtvghrnhgrlhhsrdhiohenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8BCD51700083; Mon, 5 Sep 2022 17:12:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-927-gf4c98c8499-fm-20220826.002-gf4c98c84 Mime-Version: 1.0 Message-ID: <628f27cd-d7f0-4a75-bf5b-f4812ff459a5@www.fastmail.com> In-Reply-To: <530b3a9d-0ee4-6061-8c69-df672d238032@bastelstu.be> References: <530b3a9d-0ee4-6061-8c69-df672d238032@bastelstu.be> Date: Mon, 05 Sep 2022 16:12:18 -0500 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC [Discussion]: Improve unserialize() error handling From: larry@garfieldtech.com ("Larry Garfield") On Mon, Sep 5, 2022, at 12:20 PM, Tim D=C3=BCsterhus wrote: > Hi > > I've now written up an RFC as a follow-up for the "What type of=20 > Exception to use for unserialize() failure?" thread [1]: > > ---- > > RFC: Improve unserialize() error handling > https://wiki.php.net/rfc/improve_unserialize_error_handling > > Proof of concept implementation is in: > > https://github.com/php/php-src/pull/9425 > > Discussion period for that RFC is officially opened up. > > ---- > > The primary point of discussion in the previous mailing list thread an= d=20 > in the PR comments is whether unserialize() should continue to emit=20 > E_WARNING or whether that should consistently be changed to an=20 > Exception. As of now I plan to explicitly vote on this and the RFC=20 > contains some opinions on that matter. > > Best regards > Tim D=C3=BCsterhus > > [1] https://externals.io/message/118311 Well-explained and well-argued. The only thing I'd add is that we shoul= d consider bumping the E_NOTICE to an E_WARNING, *and* slating it to inc= rease to an exception in 9.0. This feels like a smaller BC concern than= most, but people are extra sensitive these days about those edge cases = so it's probably good to be cautious. --Larry Garfield