Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118587 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22654 invoked from network); 8 Sep 2022 16:36:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Sep 2022 16:36:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 274091804AB for ; Thu, 8 Sep 2022 09:36:30 -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: AS19151 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 ; Thu, 8 Sep 2022 09:36:29 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 843345C02B2 for ; Thu, 8 Sep 2022 12:36:28 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Thu, 08 Sep 2022 12:36:28 -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=1662654988; x=1662741388; bh=FBXpFMHp2+A1Bv9+rgRZvswuP RZYoET6N/klXE6e0Yc=; b=jQDWE1YJ7Cign45oNxSQTwMKG5oZyvnP2DPUGS+ai zw1o0f+MHZKdpfftoChQd+tfRmpbe8IyO12TtBvA05OpgUR5ybF1y8MJjRDqhSOt uaVIHwnQ/58+7drg8xceOwsLN7ApXXzZthAopqPhDRvxtsYRrmAVD8Vg9rdDQNr4 f5UJbnSjplDxqY+vcsn4yTHU9LKh1lH7T12tlJszbuORNEmRPNUVBG7kvfuAW1e4 sYcdiYrSGdlAr0NOJENPJzNgIs0E6NYWIIEIPEv8u6M57AfD91L9AUtfkspoZ3Ea cbV3c+46Cud5NwhtGfRYABWMa67EifUN+S83dw2FG/jgA== 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=1662654988; x=1662741388; bh=F BXpFMHp2+A1Bv9+rgRZvswuPRZYoET6N/klXE6e0Yc=; b=B0QoK3k6rLrD74otc dxGUsXxZK4Fc2QA65m90mtBFrVUOfLIYnmkmv9EHHQ5FH4N/UNwy++W3k5MIqxJR D+bTjSyiG0lqL9a2oV8Q6/icb3rBEVzxbvekg1Pb0Xe0vdr32Pn4X7Njjbqu72ot muibNqWlCXgKmhoS+o0AiL68Zw8RF5OSkjf/AuvxJSUSiGfte3x2yw/E8ku7KC2K Y1kfJRCU+l28Xqek6o7gQ4liVl/GY9mvrTbY4G5vre2ic17MuR7KUnHpOk2mZN4+ tcoriqRIIjbAo7k/V7QZOtvVi2rz5JjCzsfTszxuECFOEjfZDZXJbJqGPiOckDA/ q11RA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtfedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepffffffejffdugfegvedviedttedvgfejffefffej leefjeetveehgefhhfdvgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 49BDC1700082; Thu, 8 Sep 2022 12:36:28 -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: References: <530b3a9d-0ee4-6061-8c69-df672d238032@bastelstu.be> <628f27cd-d7f0-4a75-bf5b-f4812ff459a5@www.fastmail.com> <2474d6fc-a61d-19e8-b903-ff389dbb9ff6@bastelstu.be> Date: Thu, 08 Sep 2022 11:36:07 -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 Thu, Sep 8, 2022, at 11:18 AM, Tim D=C3=BCsterhus wrote: > Hi > > On 9/7/22 23:44, Larry Garfield wrote: >> Either I guess? Honestly we should decide that in advance on the lis= t. :-) E_WARNING+Exception in 9 is what I'd probably favor, with "Excep= tion now" as a second choice. >>=20 > > I'm a new-ish contributor here in internals, so I don't know how thing= s=20 > were done in the past for similar situations/issues. > > I'm not sure, though if it makes sense to already decide on something=20 > for PHP 9. If it's not baked into code shortly after the vote finishes= ,=20 > then people might forget that "there's something that still needs to b= e=20 > done". For a deprecation one can at least go through all the=20 > deprecations once PHP 9 opens, as a deprecation effectively is defined=20 > to be a removal in the next major. For a warning this is less obvious. > > Personally my first choice would be "Straight to Exception", so I migh= t=20 > not be the best person to decide on that :-) > > Best regards > Tim D=C3=BCsterhus We've done this kind of two-step thing before; a lot of PHP 8 changes we= re voted on well in advance of 8.0's release. A "Warning now, Exception= in 9" vote would not be unprecedented. --Larry Garfield