Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104604 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1005 invoked from network); 6 Mar 2019 16:53:17 -0000 Received: from unknown (HELO mail-ot1-f53.google.com) (209.85.210.53) by pb1.pair.com with SMTP; 6 Mar 2019 16:53:17 -0000 Received: by mail-ot1-f53.google.com with SMTP id 98so10770333oty.1 for ; Wed, 06 Mar 2019 05:41:41 -0800 (PST) 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=U7Mq5OswgLAKY+E5UIz+2t6ZnyG1bIf4MpsuCdsAdL4=; b=pMd8sfU3njoHNjq80foDj0WbqgqrOz+OZ/TaZastkbLGg+ke402g704AB3hn2sJDZv dkRx9jfaWpkwqeTGllV0z6J2eMz0iBfVbY2VNGN5+XASBrUKPuDYgOoqz+Dltdd7CDNM VaLKjbU5T8dxLceXkxVeuP9zKS9ygPCJiZ90RKZbdfWxbaLTYzKlhVvfKFavh3fPVt9R 1IiDyu+6JzEitSGHGNU8U4BNWSHGOyXYNrvyuSIcwxsibnzE2nQLtcJ6BMd40bpAP0Ac U7qZlSpk1oIqAxCiEXrJFcyuWg/t0pDbHok1P69tjJWqalIfoNMCiiSW8l6v3oTfcFkC Qp1w== 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=U7Mq5OswgLAKY+E5UIz+2t6ZnyG1bIf4MpsuCdsAdL4=; b=K/m7D7sv8K/BhwnZETsIiaE1DTw/ZxIZ2mdk2oSl8ENMvMSAJcWf491VYgjZnrRD/o y+iv2Yyy9S+AXovWooh5LbrGp31AyYJRlfmlj7ZYVR46GPtdAJwF00mUgMbkrxhvSC6n IJxCSCRQzZw9O/ugp42ssOSZm+YKcrTReOXfJvSCemPSmBWqr9MJUGuSJGwWB6ZvX9wr oZ+N11D6IhVE/jiIlkRWvN/T1oN91InYYdNyzipHBdNcKHD7Rp4m4xTwd2N/Go9ybh/l Q33rdK1ymmelVwHHLJBnEyjycYMeG1yE9kA8qcBXSFnQGoyTRLKuXQVG1POCt40cYxPk FkUw== X-Gm-Message-State: APjAAAXWd01EQzxh5o675+Zu+wteZPTxkSiIXzSDCC9fhvW45UcatcQI 14kW/jnn8Vru8fcVb/t+YEbfwLgfkBpS5UA8gLo= X-Google-Smtp-Source: APXvYqxOJLEuX4G74oalDkUeGwmSpnfoZTWo+h8b23xs4gkDuO8LVYCG2QgQSkUm/fGlZNW7lzyeX6v98RtbDnIMVBg= X-Received: by 2002:a9d:3dc9:: with SMTP id l67mr4657535otc.199.1551879700427; Wed, 06 Mar 2019 05:41:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 6 Mar 2019 14:41:28 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000473b2905836d265d" Subject: Re: [PHP-DEV] [VOTE] New custom object serialization mechanism From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --000000000000473b2905836d265d Content-Type: text/plain; charset="UTF-8" > How do people feel about deprecating Serializable in 7.4 and > removing in 8.0 (not as part of this RFC but a separate one)? The > deprecation warning would only be thrown if Serializable is implemented but > the class has no __serialize/__unserialize. The timeline would be a bit > aggressive in that we'd be introducing the replacement in the same release > as the deprecation, something I'd usually try to avoid. > I'd feel fine. The plan is aggressive, but Serializable easily produces broken payloads right now, so we need to move away from it as quickly as possible. You didn't mention it, but keeping __sleep/__wakeup as is in 7.4 is fine to me: they do no harm. Deprecating them might be considered in 8.1, but they don't need the same aggressive plan to me. Nicolas --000000000000473b2905836d265d--