Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118586 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20618 invoked from network); 8 Sep 2022 16:18:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Sep 2022 16:18:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 13A621804AA for ; Thu, 8 Sep 2022 09:18:11 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 8 Sep 2022 09:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1662653888; bh=BPaBYL5hsgHkeYeH/LR+avFFHyACRGfxr7tkMJzHXAU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=K/IUm5j9+VB5fsplUPPb7ZTMD4UpK/oRwRVpXnHS2e069sdXE75G+RTMH1ICLQQ6l xGuW+sG0yjFEzxWVtoZr6G6FZA5BaW7PmFOiI54qKRr4rlz8xGoes+bNsdud8AISWc xFh3xhTdBAwoIphfJHD4kfSG0gEma5wXPZm28ev0YbKvsOtnPmHVvhf929mRBmgXux Ut3IeiodRmnAYiWasIb4RSTcL/XQYMki2FxX99VIiQAqQyesEpmAsBsmgKxVoasbfW yWQbdQFxxlm0vTfgPnAyUZVya3VscstiBPITI3DKTwF5lwOzO0krMk4znKE5qu3qY/ ph8i+ZEldSxig== Message-ID: Date: Thu, 8 Sep 2022 18:18:06 +0200 MIME-Version: 1.0 Content-Language: en-US To: internals@lists.php.net References: <530b3a9d-0ee4-6061-8c69-df672d238032@bastelstu.be> <628f27cd-d7f0-4a75-bf5b-f4812ff459a5@www.fastmail.com> <2474d6fc-a61d-19e8-b903-ff389dbb9ff6@bastelstu.be> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] RFC [Discussion]: Improve unserialize() error handling From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 9/7/22 23:44, Larry Garfield wrote: > 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 "Exception now" as a second choice. > I'm a new-ish contributor here in internals, so I don't know how things were done in the past for similar situations/issues. I'm not sure, though if it makes sense to already decide on something for PHP 9. If it's not baked into code shortly after the vote finishes, then people might forget that "there's something that still needs to be done". For a deprecation one can at least go through all the deprecations once PHP 9 opens, as a deprecation effectively is defined 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 might not be the best person to decide on that :-) Best regards Tim Düsterhus