Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77551 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44946 invoked from network); 23 Sep 2014 18:07:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 18:07:53 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:43387] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/C4-20247-8F6B1245 for ; Tue, 23 Sep 2014 14:07:53 -0400 Received: by mail-wi0-f181.google.com with SMTP id z2so5719950wiv.8 for ; Tue, 23 Sep 2014 11:07:49 -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=nhpXWSIKpoaFPkd7yISOJZ/TvYPu7YoqCWRMQQaxduI=; b=Rut8DpGyMcxp9KotEskmfAtrvjIyDDOfhDtM5eQB/9cZEXIf4LrfSLhWf443XixcQi 4LKHUzQkqNuNOWYLVgNEIi2k1BZJ0ANDn+N6YcPjlv2vrOuAWq6k4FGSuM5zVMH2nof5 pa+ACsAFnp+FI23moIjqDAePTSqFxXov9hyFRzczD2GEv4xOqcBipcb1MzlAwSkUYXzE ppOaev1ypbwhCUplq0nibs1C2n7cHbET3xptn9mTwqcytXfobF8VG4a0KyBcsyqnEk6c Y0ntsCh2916atWC79RzqP1o63S1BCQaLCQWhY2M505KS+AB4Wp9pbphTolgnpMgLNAe7 0WsQ== MIME-Version: 1.0 X-Received: by 10.180.10.38 with SMTP id f6mr5491298wib.30.1411495669855; Tue, 23 Sep 2014 11:07:49 -0700 (PDT) Received: by 10.217.55.195 with HTTP; Tue, 23 Sep 2014 11:07:49 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Sep 2014 19:07:49 +0100 Message-ID: To: Park Framework Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Improve PHP 7 serialization From: leight@gmail.com (Leigh) 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.