Re: Improve PHP 7 serialization
| From: | Leigh | Date: | Tue, 23 Sep 2014 18:07:49 +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-77551@lists.php.net to get a copy of this message | ||
On 23 September 2014 17:36, Park Framework <park.framework@gmail.com> 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.