Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104607 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 34036 invoked from network); 6 Mar 2019 19:32:56 -0000 Received: from unknown (HELO smtpbg65.qq.com) (103.7.28.233) by pb1.pair.com with SMTP; 6 Mar 2019 19:32:56 -0000 X-QQ-mid:Yeas11t1551889273t037t08933 Received: from 14D73359B2E14ADDB4DDC3857AE32898 (me@jhdxr.com [220.255.44.152]) X-QQ-SSF:00000000000000F0F61000000000000 To: "'Nikita Popov'" , "'Sebastian Bergmann'" Cc: "'PHP internals'" References: In-Reply-To: Date: Thu, 7 Mar 2019 00:21:12 +0800 Message-ID: <000601d4d438$9d854140$d88fc3c0$@jhdxr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQH5svmpZ2FSTuu/h8iPodTmDRq0IwL5qxyKAfTbob6ljZM+cA== Content-Language: zh-cn X-QQ-SENDSIZE: 520 Feedback-ID: Yeas:jhdxr.com:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 Subject: RE: [PHP-DEV] [VOTE] New custom object serialization mechanism From: me@jhdxr.com (=?utf-8?b?Q0hVIFpoYW93ZWk=?=) I voted no for similar reason. I understand the problem we have, but I = really don't like the idea that just introduce a new method, well = actually a pair of new methods, to solve this problem, without any plan = to stop userland developer from the wrong use case. The deprecating plan = also sounds too rush and aggressive for me. = Serialize/unserialize/__sleep/__wakeup are wide used, and deprecating or = removing them will be a huge BC break.=20 PHP 8 is a revolution version IMO, so if a RFC targeting PHP 8 propose = to deprecate or removing those 4 methods, I will vote yes. But at the = same time, I'd like to ask, is it possible to show warnings only if = potential broken detected, e.g. serialize with reference, or parent:: = serialize is called. Regards, CHU Zhaowei -----Original Message----- From: Nikita Popov =20 Sent: Tuesday, March 5, 2019 8:35 PM To: Sebastian Bergmann Cc: PHP internals Subject: Re: [PHP-DEV] [VOTE] New custom object serialization mechanism On Tue, Mar 5, 2019 at 1:18 PM Sebastian Bergmann = wrote: > Am 01.03.2019 um 16:08 schrieb Nikita Popov: > > I have opened voting on > https://wiki.php.net/rfc/custom_object_serialization. > > The vote will be open until 2019-03-15. > > I voted "No" because this adds a third mechanism without a concrete=20 > plan to phase out the existing two mechanisms. > Good concern. 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. Nikita