Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14924 invoked from network); 24 Sep 2014 06:11:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Sep 2014 06:11:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.42 mail-qg0-f42.google.com Received: from [209.85.192.42] ([209.85.192.42:58270] helo=mail-qg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/F0-03797-7A062245 for ; Wed, 24 Sep 2014 02:11:51 -0400 Received: by mail-qg0-f42.google.com with SMTP id z60so4363837qgd.29 for ; Tue, 23 Sep 2014 23:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=itlh2xl2TAyNHDJ50NglI0G7xR8gzeIi5FRu4sy9KKQ=; b=nsJEKLhIeaxLagv3d48hChoXpr6YgcvgIK/e+TdKr0dmsMa0D6EKAP1ONsicdJb9pC z5lWbba9wo7uV8qGLqR+yRupbLOMGTTpUA9F8fPlM2VLKlxCpXNYuKYZlayZW28/57L9 JjJCEujzybHe+D66CZCn113X6aKxfJnhD1Ppnvp01AWFoKSXEKOmk4OjF0trtRQ9DH5d 7gZOuqeI+lxCBqSUOF3MbKEf8dX71j3VZom44dgWeAuC+mRo9onjapGA2CyNIImI+hGb zcfp6YNtvjxXBWYyW3UfDqgC6asibu3d9UKv9xBThAJ+o39ob+xzf8n77yAYMKw9f6YX hIyA== MIME-Version: 1.0 X-Received: by 10.224.7.130 with SMTP id d2mr6671585qad.18.1411539108086; Tue, 23 Sep 2014 23:11:48 -0700 (PDT) Received: by 10.140.22.51 with HTTP; Tue, 23 Sep 2014 23:11:47 -0700 (PDT) In-Reply-To: References: Date: Wed, 24 Sep 2014 08:11:47 +0200 Message-ID: To: Leigh Cc: Park Framework , PHP internals Content-Type: multipart/alternative; boundary=047d7b677aaa1fcdbe0503c98f24 Subject: Re: [PHP-DEV] Improve PHP 7 serialization From: pierre.php@gmail.com (Pierre Joye) --047d7b677aaa1fcdbe0503c98f24 Content-Type: text/plain; charset=UTF-8 On Sep 23, 2014 8:07 PM, "Leigh" wrote: > > On 23 September 2014 17:36, Park Framework wrote: > > > > If you do not update in PHP 7 serialization method, it will never be > > updated, the default serialization in PHP 7 will be slow. > > > > To maintain backward compatibility, can implement support method calls > > on primitive types, new algorithms for serialization to be called only > > in the new API. > > > > $var->serialize() > > $var->unserialize() > > > > What do you think about this? > > To maintain backward compatibility we leave the behaviour of > un/serialize() in tact. > > There are extensions for alternative serialisation methods and > regardless of whether any of these becomes a bundled extension, the > functionality should exist under a different set of function names. They all exist already. Either for automatic serialization or using _(un)serialize, or pack/unpack. Also as it has been said already, many different extensions exist, each of them being good in one or many areas. It is like compression methods, use the right one for the right task. --047d7b677aaa1fcdbe0503c98f24--