Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118576 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45616 invoked from network); 7 Sep 2022 21:45:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Sep 2022 21:45:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D1E94180384 for ; Wed, 7 Sep 2022 14:45:07 -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,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 ; Wed, 7 Sep 2022 14:45:07 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id EBC6A320077A for ; Wed, 7 Sep 2022 17:45:04 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Wed, 07 Sep 2022 17:45:05 -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=fm2; t=1662587104; x=1662673504; bh=JQ9M23yY4yZKIAOZnwCA6xuCT MzsIhrIQ6KWR5A4s6c=; b=NMJ7Se1lW4C84ILLQJrmUpVonHRKpl0Y+7sfz0mmL jk/WS/LTxy5PBF04uQUNWLDcLd9WPK7Oda/O7426AtAzYWSi46IUyjOsmDvOQym/ Z94BUjM+3B/Fi6h+81cB1pIBsXDeBCAT6d3aR4bqUAzG0cpXwA7RZyGxcmK9RWlP yEvn3yX/8+hH0lCin+R2qVdvwnmtcYj3GT6KO5EYJ8rm8CODEhKO92fiGW6zrECx aL9cA2xP5t9UiIieYc/+HN4tVmkn+4BtzlwzzLc5zix3yCUj6M1l1PESRDSuzn3D B2/8MZ7fRPk+PMr57U98Rzm7ErBkWMjPAsazgZoZt53/Q== 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=fm2; t=1662587104; x=1662673504; bh=J Q9M23yY4yZKIAOZnwCA6xuCTMzsIhrIQ6KWR5A4s6c=; b=WJ9mn0YEdlySvxCyH co5SasyVdkM7m11HlHPPLxF7uXCjUy9GWhf3a3QQXlp1dSoExNtNZOwocywIV5hI rzlDSBohSUYDZAJfF6taIEEVp2WfQdbuh29BV2BVkf13QhY5sEST2Z+W9/rjAzQJ YwFOPGtNwCzqD96pQSdHVAzkUIgfaaD168N8QioTMA07D4iGR8mNkgtciEd4WPKj i6MbMHKYuV7J+ZY6aunD/IjD3qhQ7OoYWwnNIdrUKumlBoTZVeuZzYODyaaBaKfA YxplKo9hxvP48+1Y+FlOjW3YQ0iUlbccJR4uUHHkp6v16NvPhPlNq2tDT5lOJnez 5RmaQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtuddgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepgeeghefgteejheeggfeghfelueeggfdtjeeivedv tefhveeguedufeelhedvteeinecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhf ihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1BFED1700082; Wed, 7 Sep 2022 17:45:03 -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: In-Reply-To: <2474d6fc-a61d-19e8-b903-ff389dbb9ff6@bastelstu.be> References: <530b3a9d-0ee4-6061-8c69-df672d238032@bastelstu.be> <628f27cd-d7f0-4a75-bf5b-f4812ff459a5@www.fastmail.com> <2474d6fc-a61d-19e8-b903-ff389dbb9ff6@bastelstu.be> Date: Wed, 07 Sep 2022 16:44:42 -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 Wed, Sep 7, 2022, at 10:37 AM, Tim D=C3=BCsterhus wrote: > Hi > > On 9/5/22 23:12, Larry Garfield wrote: >>> RFC: Improve unserialize() error handling >>> https://wiki.php.net/rfc/improve_unserialize_error_handling >>> >> Well-explained and well-argued. The only thing I'd add is that we sh= ould consider bumping the E_NOTICE to an E_WARNING, *and* slating it to = increase to an exception in 9.0. This feels like a smaller BC concern t= han most, but people are extra sensitive these days about those edge cas= es so it's probably good to be cautious. > > Can you please clarify whether you mean: > > 1. Change the existing E_WARNING option to "E_WARNING+Exception in 9.0= ". > 2. Add a new "E_WARNING+Exception in 9.0" option the vote, such that t= he=20 > vote will be "E_WARNING" vs "E_WARNING+Exception in 9.0" vs "Exception" > > Best regards > Tim D=C3=BCsterhus Either I guess? Honestly we should decide that in advance on the list. = :-) E_WARNING+Exception in 9 is what I'd probably favor, with "Exceptio= n now" as a second choice. --Larry Garfield