Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118832 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 60898 invoked from network); 17 Oct 2022 10:16:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Oct 2022 10:16:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9FF161804A9 for ; Mon, 17 Oct 2022 03:16:44 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45]) (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, 17 Oct 2022 03:16:40 -0700 (PDT) Received: by mail-vs1-f45.google.com with SMTP id h4so10935922vsr.11 for ; Mon, 17 Oct 2022 03:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tD0us1wFb4OxwcaMbK7x5JWxUuygeflh15zEW5Q3+Ts=; b=hoXk4BW5luDuDQ3x6IsOUvI5XUiq4/pPDwftVFf4ATjOelr5JL4O8iaqz2+aXDS26x PgJP0JD0Z6mfAf+jNLFh2gtuyzcSJPG90iCYfvlGnUyAJJAyLaZ6hunXkjFH+hTHlR4u fBIPP6gPPnYD1Z0uiJiLNj1HSL2VP/h/TFzct5ImScYPGMqNZESw92nGmAnjtd4q5mJh gXWWqm/uHvjdZqzmZBrcNUzfgVyzjJqzd44YFoGIjc2iXZ7eLhRw7fZVTlNIC2xvTkBr 0BDlkYWKhFXXo5ZERK4ANIZWjjdRklxR8m8SZHY3N4TrDBS4/6MmerJHOOUD43W7glLK gtkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tD0us1wFb4OxwcaMbK7x5JWxUuygeflh15zEW5Q3+Ts=; b=KPRWvroHdzpRrveg1QQheB1dAQcg3lYB9yqrUbrbeWFfY3POuUhtzGealr4EVWww+0 3PScXSFX67Nx12fSx+dLsIGSPKR55fDivbMvcu3+3oDVZtKfPg6/C/9CAcubh09bgd9k wv3EDflsZIrWwSxXGMLQCqm/tZYC05E5P8p59JUp1PKWy8Y2yutMz2lXTDdNSWAOsSKF 0ygFTepb9kqaNp6tpiYiMbco++c0pwhBI5F+q0AH7o1VWgK702XQ/bGq8Wd/AiBJzKrF MrbMzuzuoy+HVSzNSENq4Xtml5Cn7W1yzwcAYOjAdMWx43L/jAff56tGuyVut9SlYvjp i48w== X-Gm-Message-State: ACrzQf3k559pw9taYc1qQl4bhE7+qogEn8VUDEd0YLXsPzqT1W+EJpwo V69hEUZQkMlXFqnEle+7TWklo1mY1qB0Ew== X-Google-Smtp-Source: AMsMyM71qebIJdqmEGGKxkogKHF12r4qL3w5xK/t9Enk+x2ZEMOREql1RAgF8PeKLXi0iQrDqIY6GA== X-Received: by 2002:a67:bc14:0:b0:3a7:c73e:e4f1 with SMTP id t20-20020a67bc14000000b003a7c73ee4f1mr3593339vsn.43.1666001799409; Mon, 17 Oct 2022 03:16:39 -0700 (PDT) Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com. [209.85.217.48]) by smtp.gmail.com with ESMTPSA id h129-20020a676c87000000b003a7633f1edfsm989851vsc.15.2022.10.17.03.16.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Oct 2022 03:16:39 -0700 (PDT) Received: by mail-vs1-f48.google.com with SMTP id k6so10966697vsc.8 for ; Mon, 17 Oct 2022 03:16:38 -0700 (PDT) X-Received: by 2002:a05:6102:3ec7:b0:356:cbdf:122d with SMTP id n7-20020a0561023ec700b00356cbdf122dmr3511274vsv.9.1666001798658; Mon, 17 Oct 2022 03:16:38 -0700 (PDT) MIME-Version: 1.0 References: <22177032-fe72-c39b-63fe-fa4368a70852@bastelstu.be> In-Reply-To: Date: Mon, 17 Oct 2022 11:16:02 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Nicolas Grekas Cc: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , PHP internals Content-Type: multipart/alternative; boundary="00000000000067936405eb384539" Subject: Re: [PHP-DEV] [VOTE] Improve unserialize() error handling From: phpmailinglists@gmail.com (Peter Bowyer) --00000000000067936405eb384539 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 17 Oct 2022 at 09:57, Nicolas Grekas wrote: > I created this patch/PR to show the changes that would be required on > Symfony to work around the BC break: > https://github.com/symfony/symfony/pull/47882 > > Note to readers: in this whole discussion, Symfony is just an example of > affected code. In the end, Symfony will adapt to the RFC if it passes. Th= e > point being made is that PHP scripts should not have to be patched to run > on newer minor versions of PHP. That's what "keeping BC" means. > I didn't think there was much reason for the negative fuss being made around this PR, after all catching \Throwable or another exception doesn't make much difference. Seeing the workarounds here however it is more involved than I expected. I have changed my vote for the first point to "No". I=E2=80=99d like to see= this implemented in future (9.0?) but now agree that 8.3 isn=E2=80=99t the right= place. Peter --00000000000067936405eb384539--