Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118819 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 98672 invoked from network); 15 Oct 2022 11:02:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Oct 2022 11:02:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 14E95180054 for ; Sat, 15 Oct 2022 04:02:57 -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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (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 ; Sat, 15 Oct 2022 04:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1665831773; bh=Hw21UyLmPBC4jmjxU+Cg9gzWb5dR6LAWDHYXXKg4310=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=igMMYtg3R3B0jLP9Pg8NxhGN68ZgY8D+Sry4i/LVaZ2S6Hhm8FwsHs6ycBznEnmFf OKnFEf6ckq5FfmUYifwoWPHJO0xqDPzVH8h8stwY5p2UNXc9oRjGGqQC2ZEZBndkhc rpWhSFrrtiubSenAM+IgVE784/6WRBTMVZqqcRqo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([79.220.74.72]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MN5iZ-1oTVV20JGP-00J6UZ; Sat, 15 Oct 2022 13:02:53 +0200 Message-ID: <97d8ecac-2249-81e4-fc01-9a02e5b5cf93@gmx.de> Date: Sat, 15 Oct 2022 13:02:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 To: Nicolas Grekas , =?UTF-8?Q?Tim_D=c3=bcsterhus?= Cc: PHP internals References: <22177032-fe72-c39b-63fe-fa4368a70852@bastelstu.be> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Oylyr/SzIKUxDADYLwcapjSlPFk1ZiVfS6lhbWalZ2EEW3LvhbY O6yhSbsWvI0CpBE5qq3UeBN1Eb3MA/fk4nluncpC05DlUXPc9lwEy+OIg5ZgJT++5meX/Wb fcj1CcyD3GuHPbBh/6qLCgqHCxY3FiCKF4FWH25iOijrXRlrPvhVm3361pkx1zckGyM+mqY F+bBqHZLzaxRTYPc3NtZw== X-UI-Out-Filterresults: notjunk:1;V03:K0:oLNPbW4zSZU=:EJ75Xl3uTOscL8OvBLvFbn VHhSadMkqCxVfQl36y9s2MBQjHaKqwWz798OPGiPkhRVxuilTq3wU4VRp43O4k34krqZSbQUQ Yn+oPxv9wiwp7KIMKetGrESD6zCWjdHk4V01NcRNqWNiZ8ujG09ItFVAkrXUMtNmdXJPhdpeu FC4y9DMou8ODK9nrQUhuCgIRyGWltJ8hSP8nbX4bZbo7TMc4e4y2OPnavt9QA3SQLzIwnJiZ8 t9bEdbpKI8sRGbt35H8E4QYQJ8uwSe9+vjtA6TA23/S6j3B4gvdmpUXyzvFcJ378lGITWmW6h b0/7Xk3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WVKfr mlr7LJMe1Wd6j0Wc38aIgNul5R+y/GelOAOe6iiZW0pglss1CO+b9fgqQ59n6qmHj/Y6gVJbv LlbfQ7qChZtAtF7tDaf6V4liRaJBdPjUM/Zv20nohYFa7rP0CwXmUxB6c5dcq0yU3K6Gfd0lm 3A65JnlCzhgkF62kr/06ye5QqjztPDzB4U3w/rELqzX4h Subject: Re: [PHP-DEV] [VOTE] Improve unserialize() error handling From: cmbecker69@gmx.de ("Christoph M. Becker") On 15.10.2022 at 11:06, Nicolas Grekas wrote: >>> I'm therefore voting NO on the proposal. >> >> I'm not surprised by the =E2=80=9Cno=E2=80=9D on the first vote based o= n the previous >> discussion. I am surprised however that you also disagree with raising >> the E_NOTICE to E_WARNING for consistency. > > Since the beginning my point is not that the RFC doesn't have merits. It= 's > that the proposed approach breaks BC in a way that will affect the > community significantly. We have policies that say we should avoid BC > breaks and they should apply here. Well, I consider the current behavior very unfortunate; sometimes E_NOTICE, sometimes E_WARNING, sometimes both, and sometimes a UnexpectedValueException =E2=80=93 and this looks more like historic rando= mness than having any deeper reasoning behind it. I also understand that we need to be concerned about BC breaks. So for me the question is whether we want to stick with the current behavior *forever*, or if there is an acceptable way forward. I certainly hope for the latter. Would it really be a serious issue to promote E_NOTICE to E_WARNING in PHP 8.3? I don't think so, but I may be wrong. And would it really be a serious issue to promote E_WARNING to an exception in PHP 9? Maybe, but after all that would be a new major version, so some BC breaks are to be expected anyway. =2D- Christoph M. Becker