Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113727 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23509 invoked from network); 23 Mar 2021 18:40:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Mar 2021 18:40:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4605618050B for ; Tue, 23 Mar 2021 11:35:49 -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.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from v-smtpout3.han.skanova.net (v-smtpout3.han.skanova.net [81.236.60.156]) (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 ; Tue, 23 Mar 2021 11:35:47 -0700 (PDT) Received: from [192.168.7.11] ([213.64.245.126]) by cmsmtp with ESMTPA id OlsVll1vtMkHROlsVlqlCh; Tue, 23 Mar 2021 19:35:43 +0100 To: Nikita Popov , Nicolas Grekas Cc: PHP internals References: Message-ID: Date: Tue, 23 Mar 2021 19:35:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------5098980DE36F42CA785F575A" Content-Language: sv X-CMAE-Envelope: MS4wfHuwToInosH32yQigoZcrnra8OojuyFGj2Ok9jO+iP6CGtJWW0BIP2Ewaz13bOJzHMTCN09KpqXCUXGkQf9SN2pYpGznBke+AGofxSqNxLzYNXXrg7UD q8f03A+QtPtfSImkQ2TFRaDxCwT+61nSRBN8Zrgm37KS53JB22bpCy32nyxaChoRMuFqyGqVSDOuyz0IwxoJrfmZBKWentlEXa8HP5GglRTWPtYr+IBZQzP6 9UL9NcyX/USNMUyO9HhHNyHLUz/zqfmQZXxhIPnCYHk= Subject: Re: [PHP-DEV] [RFC] Phasing out Serializable From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) --------------5098980DE36F42CA785F575A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Den 2021-03-23 kl. 18:19, skrev Nikita Popov: > On Tue, Mar 23, 2021 at 5:01 PM Nicolas Grekas > > > wrote: > > Hello Nikita, > > > Picking up a loose thread: > https://wiki.php.net/rfc/custom_object_serialization > > introduced a > replacement for Serializable in PHP 7.4, so it's time to think > about > deprecating and removing the old mechanism: > > https://wiki.php.net/rfc/phase_out_serializable > > > This RFC follows a rather conversative approach. In PHP 8.1 > there will be a > deprecation warning if Serializable is implemented without also > implementing __serialize() and __unserialize(). In PHP 9.0, > support for > Serializable is dropped internally, and only the interface > retained. In PHP > 10.0 the interface is dropped as well. > > > > Reading the comments in this thread, the three-step approach is > surprising to some. > What about deprecating in 8.1 and removing in 9.0 instead? > The stub Serializable interface can be provided in userland via a > polyfill, if anyone really needs a smoother transition plan. > > I'd really like to see this deprecation in 8.1, to stop ppl from > writing new implementations of Serializable asap. > > > I've updated the RFC to follow this suggestion. Björn, please tell me > whether this addresses your concerns. > > Regards, > Nikita > Yes it does, very good! r//Björn L --------------5098980DE36F42CA785F575A--