Re: Improve PHP 7 serialization
| From: | Park Framework | Date: | Wed, 24 Sep 2014 00:39:26 +0000 |
| Subject: | Re: Improve PHP 7 serialization | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77562@lists.php.net to get a copy of this message | ||
I agree, you're right.
My desire to override the existing algorithm serialize(), due to the
need to change the method serialization, but does not change the
source code (legacy code, ext PHP)
2014-09-24 3:03 GMT+03:00 Stas Malyshev <smalyshev@sugarcrm.com>:
> 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/