Re: Improve PHP 7 serialization
| From: | Park Framework | Date: | Tue, 23 Sep 2014 16:36:10 +0000 |
| Subject: | Re: Improve PHP 7 serialization | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77548@lists.php.net to get a copy of this message | ||
> 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?