Re: Improve PHP 7 serialization

From: Date: Tue, 23 Sep 2014 16:44:46 +0000
Subject: Re: Improve PHP 7 serialization
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-77549@lists.php.net to get a copy of this message
On Tue, Sep 23, 2014 at 7:36 PM, Park Framework <park.framework@gmail.com> 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.

« previous php.internals (#77549) next »