Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97282 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80426 invoked from network); 5 Dec 2016 07:01:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2016 07:01:05 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:48986] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/30-11772-DA015485 for ; Mon, 05 Dec 2016 02:01:04 -0500 Received: (qmail 27724 invoked by uid 89); 5 Dec 2016 07:00:57 -0000 Received: from unknown (HELO mail-wm0-f54.google.com) (yohgaki@ohgaki.net@74.125.82.54) by 0 with ESMTPA; 5 Dec 2016 07:00:57 -0000 Received: by mail-wm0-f54.google.com with SMTP id f82so77430219wmf.1 for ; Sun, 04 Dec 2016 23:00:56 -0800 (PST) X-Gm-Message-State: AKaTC00vYeSU9S7SMOppemqc4+t7Vme/oPJYlu2YCp1CTUcjMBVZSRi4sMyiZ1iJZKuNzxITQHHeuU7ZBlMOLw== X-Received: by 10.28.9.131 with SMTP id 125mr7288697wmj.22.1480921249942; Sun, 04 Dec 2016 23:00:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.38.7 with HTTP; Sun, 4 Dec 2016 23:00:09 -0800 (PST) In-Reply-To: References: Date: Mon, 5 Dec 2016 16:00:09 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Marco Pivetta Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][VOTE] User defined session serializer From: yohgaki@ohgaki.net (Yasuo Ohgaki) On Mon, Dec 5, 2016 at 12:31 PM, Yasuo Ohgaki wrote: > The RFC allows to save session data in whatever format. e.g. > XML/JSON/BSON/etc. This is _impossible_ by save handler submodule. I've never tried, but it would be possible technically. The code wouldn't be clean code, though. With this RFC, JSON session serializer could be session_set_serializer( function ($input_array) { return json_encode($input_array); }, function ($input_string) { return json_decode($input_string); } ); // User may use "interface" alternatively. -- Yasuo Ohgaki yohgaki@ohgaki.net