Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118695 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23808 invoked from network); 27 Sep 2022 20:11:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Sep 2022 20:11:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B3F651804F8 for ; Tue, 27 Sep 2022 13:11: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 out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.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 ; Tue, 27 Sep 2022 13:11:39 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 82D7F5C01B1 for ; Tue, 27 Sep 2022 16:11:38 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Tue, 27 Sep 2022 16:11: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=fm2; t=1664309498; x=1664395898; bh=ZhVYJaYWwYdcvq/mORPQTS08I Efe/HKT2+C2pIFV7wE=; b=EyBlKCwlfdS5u6gq/vsa+9PYRGbO4ld5mE2inJhiR DcU3K8ZtydC0FZ9mjm/bQj1eixOh51WA2BI5d8TTqc04ixKMMCwCb70GYJmXAWES LKPkQYPbQzVM8rNtqepzPehgV/1Y8fIP28ya4r/F926osHF93l6lEuSLogV30HuI 9K1FnRo0JoqS3wQ1ePR3ju8FlZVy4IfA6bKUnf8uKXxnIRE/53qR6f7OU53MOXBZ qfcTLfUt0Tah/37QwJVqn9g3RX54KVUFw9CDku2ITkyD5Y8FnV7g9+DIMkSAoFu1 MSppx84oi0yJlSjZseZnevHoSdkhi5H7EWZXT1p+NKXPw== 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=1664309498; x=1664395898; bh=Z hVYJaYWwYdcvq/mORPQTS08IEfe/HKT2+C2pIFV7wE=; b=UIj4JBG+C3FmD2rZ4 aImivO2BCZKoIsF1Fn5lFvDpRmrfalBM8c6oLaLike4d8rHsWXYaCUfxJYli23mI vnYXgigG/mou7rTrq13mPTKg2fz9XEA3D20/jdotKEuw7GqAzNMSZMVAqj5oyrvf Bhzw5NFxTEhTxPm18G4l3dLva7gHZ54rhTFkIlDxQI6G7Ne2DA1LDGGnqE5tCPCi uCvSzuLbaVDnpx7N56BEXDvRVLHl4lKiLDFKddNRcfUeVv6QaIWaqt7az3rg0fsI kyJqCQVMwmmpJN1O23vJDtj1UbMWq+hpuGG/ahWoTGyiuxUk4KMCjjaE2gCc+yrj +T9YA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeegiedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfn rghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrd gtohhmqeenucggtffrrghtthgvrhhnpeeggeehgfetjeehgefggefhleeugefgtdejieev vdethfevgeeuudefleehvdetieenucffohhmrghinhepphhhphdrnhgvthenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghr fhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 59F8D1700083; Tue, 27 Sep 2022 16:11:37 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-968-g04df58079d-fm-20220921.001-g04df5807 Mime-Version: 1.0 Message-ID: <720bc406-78f1-4f4f-b0fa-00c6eb541523@app.fastmail.com> In-Reply-To: <76b3ab60-8865-a0aa-3949-f9276cd35149@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> <76b3ab60-8865-a0aa-3949-f9276cd35149@bastelstu.be> Date: Tue, 27 Sep 2022 15:11:06 -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 Tue, Sep 27, 2022, at 3:01 PM, Tim D=C3=BCsterhus wrote: > Hi > > On 9/8/22 18:36, Larry Garfield wrote: >>>> Either I guess? Honestly we should decide that in advance on the l= ist. :-) E_WARNING+Exception in 9 is what I'd probably favor, with "Exc= eption now" as a second choice. >>>> >> We've done this kind of two-step thing before; a lot of PHP 8 changes= were voted on well in advance of 8.0's release. A "Warning now, Except= ion in 9" vote would not be unprecedented. >>=20 > > Thank you, I thought about what to do here and I've adjusted the optio= ns=20 > in the "increase to what" vote to make this a 3-way vote: > > https://wiki.php.net/rfc/improve_unserialize_error_handling#increasing= _the_severity_of_existing_warningsnotices > > Do you believe that my reasoning with regard to the interpretation of=20 > the vote's results is sound? A ranked choice vote should not necessary=20 > here, because the three options follow a natural order with regard to=20 > severity/possible breakage. > > Best regards > Tim D=C3=BCsterhus Predicting people's second-place choice is risky business. This assumpt= ion seems logical on its face, but I'm sure there are people that will b= uck your expectations. > The reasoning is that unless =E2=80=9CE_WARNING in 8.x without future = decision=E2=80=9D receives more than 50%, more than 50% prefer an Except= ion no later than 9.0. Unless =E2=80=9CUnserializationFailedException in= 8.x=E2=80=9D receives more than 50%, more than 50% prefer no Exception = in 8.x.=20 If you want to go that route, I'd go all the way to an RCV vote and be d= one with it. Or else just make an executive decision as the RFC author = and let the chips fall where they may. Anyone else want to weigh in here on the timeline? --Larry Garfield