Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113724 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11677 invoked from network); 23 Mar 2021 16:06:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Mar 2021 16:06:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 01BEC1804D8 for ; Tue, 23 Mar 2021 09:01: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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 23 Mar 2021 09:01:56 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id u5so27970100ejn.8 for ; Tue, 23 Mar 2021 09:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uuBVtD49m04EQCs/OWeMOOp3JrtsnnEIt4rPJY6ZVfg=; b=JFo2qvevkMMghuiGDzOozydkNlaq59ERxQC19X5vlogeBJvF/hvpTns2pTV+cvXpYn zGWclj8KXhX30YSnnIvNBHJMOMnH8E4D7N+HKHQcqN0h8yGGqLRiE17Rat2B6CuS1xWG tSheALVc27qyGu6/atqfDsQQys+ExzHsSsu9JzIax5CeyimQPRHN0FOdDE2PuXHCLp1n oEVdLUBh4mKHx1tonEuThZz89ArIKpurSVPsUfKROJLXOTILjgcAwpg+LcFpyJwbXdF+ 8ft1pnpcqWS/762Nzdf4k0yR5QFnpmqHBBXYA+6h7lUqXmDyNVq6xKJiThSuQ+ug912H I43A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uuBVtD49m04EQCs/OWeMOOp3JrtsnnEIt4rPJY6ZVfg=; b=L+tg5yxadTefc/xH1idaKsBY/6wGIxvfN+cNfZuYHjDfo8seXQwVFHZJM+oiysvyWo ZRfYwG0Lr4QaO6S8PUvvvrSKwOs5c42HBy4j7v36dRF4HRnr+Xexj+o/j6OJsN4aHxaC XAmBnyY34gG5roxGYU+TtJ0Xd1dm7pQvnA23R94lm2tbYglpHMKOUe1xwSwImnkNcewc ZtyCFrpuAtPfhL52iLTa+9ZdwRbTCA1ExKCO2lZLmamTLba0Vwunn74P5AioOZNbQ49i JUdZkEs/c16SiWPTc7dJOSVGIBTqBlqV4EDLer1ixz0MkeY4r+Ai+AUv+bSqoEzLne9k GF9A== X-Gm-Message-State: AOAM531TdK+3If1Z+VdkPYQt3/J0ASFw2/0ht0G4uBpblQyli8WO2jMw aforQGD9o6tHdYq4aEBicCbITeF6Yz6DqFAl3/u00vobQIFqKg== X-Google-Smtp-Source: ABdhPJxXaEtxC22zUmeDiZGzGpl9o44uT8/15D2Xx8Ilad6yCmSlBXzkVDq6KeENmmuCLvAgJXbFKrUyl9AN0mKPvkk= X-Received: by 2002:a17:906:f1c8:: with SMTP id gx8mr5699250ejb.385.1616515312291; Tue, 23 Mar 2021 09:01:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 23 Mar 2021 17:01:40 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000f6930005be364cba" Subject: Re: [PHP-DEV] [RFC] Phasing out Serializable From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --000000000000f6930005be364cba Content-Type: text/plain; charset="UTF-8" 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. Nicolas --000000000000f6930005be364cba--