Re: Improve PHP 7 serialization
| From: | Stas Malyshev | Date: | Wed, 24 Sep 2014 00:03: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-77558@lists.php.net to get a copy of this message | ||
Hi!
> Perhaps a compromise would be to choose the quickest method of
> serialization, add it to PHP core.
>
> In php.ini add the directive
> serialization.method = msgpack / Igbinary / ....
We could, but what if you need to read/write data specifically from
current PHP serializer? You'd have to mess then with runtime directives,
it doesn't look like a good design. That's like having one db_query()
function for all databases and have a config parameter that switches the
global database type. I think the other option is better - to have
extensions for all underlying functions and abstraction layer (PDO or
userspace) that provides unified API if needed.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/