Re: [PHP-DEV] User defined session serialize handler

2015-01-24 Thread Yasuo Ohgaki
Hi all, On Sun, Jan 25, 2015 at 1:20 AM, Yasuo Ohgaki wrote: > However, once user serialize handler is implemented, overhead of user > serialize handler is calling 2 PHP functions. i.e. serialize/unserialize > functions whatever module provides. Users may compress/encrypt session data > whatever

Re: [PHP-DEV] User defined session serialize handler

2015-01-24 Thread Yasuo Ohgaki
Hi Rowan, On Sun, Jan 25, 2015 at 12:35 AM, Rowan Collins wrote: > On 24 January 2015 03:45:22 GMT, Thomas Bley wrote: > >Sessions take a big amount of data in production systems, so it might > >be worth to use msgpack (or others) as an option. > > This came up before, and it was pointed out th

Re: [PHP-DEV] User defined session serialize handler

2015-01-24 Thread Rowan Collins
On 24 January 2015 02:28:07 GMT, Yasuo Ohgaki wrote: >I also would like to php_serialize handler as the default serializer >and >make php/php_binary deprecated. > >php/php_binary serializers are made to work with register_globals and >have >many limitations. >e.g. Integer key not allowed, key cann

Re: [PHP-DEV] User defined session serialize handler

2015-01-24 Thread Rowan Collins
On 24 January 2015 03:45:22 GMT, Thomas Bley wrote: >Sessions take a big amount of data in production systems, so it might >be worth to use msgpack (or others) as an option. This came up before, and it was pointed out that a fast implementation of something like msgpack would need to be implemen

Re: [PHP-DEV] User defined session serialize handler

2015-01-24 Thread Yasuo Ohgaki
Hi Thomas, On Sat, Jan 24, 2015 at 12:45 PM, Thomas Bley wrote: > Sessions take a big amount of data in production systems, so it might be > worth to use msgpack (or others) as an option. Yes, it is. PHP's serialize (both php/php_serialize handler uses PHP's serialize) is not a fastest seriali

Re: [PHP-DEV] User defined session serialize handler

2015-01-23 Thread Thomas Bley
Sessions take a big amount of data in production systems, so it might be worth to use msgpack (or others) as an option. Regards Thomas Yasuo Ohgaki wrote on 24.01.2015 03:28: > Hi all, > > Session module has session serializer modules that serializes $_SESSION > back and forth. > Session seri

[PHP-DEV] User defined session serialize handler

2015-01-23 Thread Yasuo Ohgaki
Hi all, Session module has session serializer modules that serializes $_SESSION back and forth. Session serializer module can be defined by user if there is API for it. I would like to propose user defined serialize handler API. The user defined serializer API will have similar API like session_s