Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77549 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39682 invoked from network); 23 Sep 2014 16:44:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 16:44:51 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.214.172 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.172 mail-ob0-f172.google.com Received: from [209.85.214.172] ([209.85.214.172:60159] helo=mail-ob0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/F3-20247-183A1245 for ; Tue, 23 Sep 2014 12:44:51 -0400 Received: by mail-ob0-f172.google.com with SMTP id uz6so2736519obc.31 for ; Tue, 23 Sep 2014 09:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=alHyw8GKLpIqw4GNUqg6rbs+YCmUrxfwKcDlg+BbB6Q=; b=oH5trfS3lcX37VOrCMw6bm5G/Oj0zF/4fkbrE6DGp8RhayG+gtPJeXEzkbxS1ATV73 NeYznMEUU3H0LBw8Z0BhuBxV5ikapsA3grzDLQtTyutkLncaHHFapbIeUiStdtbXYxmh 6Hnabq97IxIsIOEG2HA9JXcoV/obZ9Qho4Yg0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=alHyw8GKLpIqw4GNUqg6rbs+YCmUrxfwKcDlg+BbB6Q=; b=eLQ1g8OvQ9z3A0a8vYo79u70v8jZurDU28lyNp56W+dZTVyhGSLJn6unVKhpZf7wDe 8CghgS3jbdgWNddS8xMEiA8AsaRncX8JnF7vQ2Ue0bkBn2YcXDP0DGxkG/KJBHlTqgdf ZbkB8Up2FaW0f1NUVC1EZy2t5Mps8js1ipojDMhGKuXYNRTpVhCwI+Dspzhu8ZBW4TVu QDDfQjah2XZOeNdRchLaQlXxFunbagQa4jGnWS9CuKXu6am3MiW73mmrmhgUBkt7yz93 X4NlxFJMfNPQYRTM3KWPqztsSm2iFnpsrApA533uYSC/jq7DxdQdzBLUkUsAX1sw//1q ekeg== X-Gm-Message-State: ALoCoQkOyqnI4m+rJ5zLZOsDVUAGX1B6tX/APo4KCYRAa7Hs7hYa/rg3VnPzEQbDA+JPKhGDJg02 MIME-Version: 1.0 X-Received: by 10.182.87.102 with SMTP id w6mr871597obz.35.1411490686892; Tue, 23 Sep 2014 09:44:46 -0700 (PDT) Received: by 10.202.75.205 with HTTP; Tue, 23 Sep 2014 09:44:46 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Sep 2014 19:44:46 +0300 Message-ID: To: Park Framework Cc: Pierre Joye , Paul Dragoonis , PHP internals , Leigh Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Improve PHP 7 serialization From: narf@devilix.net (Andrey Andreev) On Tue, Sep 23, 2014 at 7:36 PM, Park Framework wrote: >> Not really, not because it is not good but because there is always be a >> better one. We can't break format in every release. > > 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? Not changing the serialize() format doesn't mean that other formats can't be introduced via extensions. Though, I too would like to have more of them available by default. Cheers, Andrey.