Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119747 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 304 invoked from network); 27 Mar 2023 19:12:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Mar 2023 19:12:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B57CE180384 for ; Mon, 27 Mar 2023 12:12:09 -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=-0.7 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8412 83.65.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mail02.x-net.at (mail02.x-net.at [83.65.141.138]) (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, 27 Mar 2023 12:12:08 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail02.x-net.at (Postfix) with ESMTP id 6AD79380546 for ; Mon, 27 Mar 2023 21:12:06 +0200 (CEST) Received: from mail02.x-net.at ([127.0.0.1]) by localhost (mail02.x-net.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id YWTin_zFnf6B for ; Mon, 27 Mar 2023 21:12:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail02.x-net.at (Postfix) with ESMTP id BAF99380AFD for ; Mon, 27 Mar 2023 21:12:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at x-t.at Received: from mail02.x-net.at ([127.0.0.1]) by localhost (mail02.x-net.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lSoONLUwoZPp for ; Mon, 27 Mar 2023 21:12:05 +0200 (CEST) Received: from [127.0.0.1] (178.165.175.217.wireless.dyn.drei.com [178.165.175.217]) by mail02.x-net.at (Postfix) with ESMTPSA id 7CEDE380546 for ; Mon, 27 Mar 2023 21:12:05 +0200 (CEST) Date: Mon, 27 Mar 2023 21:12:03 +0200 To: internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <1B77BC20-4EA6-453B-A39B-2406A4E53436@dafert.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_RFC_=5BDiscussion=5D=3A_Make_unser?= =?US-ASCII?Q?ialize=28=29_emit_a_warning_for_trailing_bytes?= From: mel@dafert.at (Mel Dafert) On 27 March 2023 20:20:58 CEST, "Micha=C5=82 Marcin Brzuchalski" wrote: > Personally, I'd like the unserialize to throw an exception if trailing >bytes are detected=2E >If not by default then with the use of the option passed to unserialize >function=2E If that's the desired direction, it makes more sense to emit a deprecation= notice now and throw an exception starting in 9=2E0=2E Regards, Mel Dafert