Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97334 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28900 invoked from network); 7 Dec 2016 22:44:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2016 22:44:28 -0000 Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.158 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.158 blu004-omc4s19.hotmail.com Received: from [65.55.111.158] ([65.55.111.158:54936] helo=BLU004-OMC4S19.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/22-11772-BC098485 for ; Wed, 07 Dec 2016 17:44:27 -0500 Received: from BLU436-SMTP52 ([65.55.111.136]) by BLU004-OMC4S19.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 7 Dec 2016 14:44:25 -0800 X-TMN: [GrT6P+pAMMSQs4HB8+0ntynPERQR7ezD] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_4C26228A-C5FF-4B26-B70D-87C839341B5C" MIME-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Date: Wed, 7 Dec 2016 23:44:19 +0100 In-Reply-To: CC: Tony Marston , "internals@lists.php.net" To: Yasuo Ohgaki References: <70.0A.11772.8B1E7485@pb1.pair.com> X-Mailer: Apple Mail (2.3251) X-OriginalArrivalTime: 07 Dec 2016 22:44:22.0925 (UTC) FILETIME=[74780BD0:01D250DB] Subject: Re: [PHP-DEV] [RFC][VOTE] User defined session serializer From: bobwei9@hotmail.com (Bob Weinand) --Apple-Mail=_4C26228A-C5FF-4B26-B70D-87C839341B5C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" > Am 07.12.2016 um 21:07 schrieb Yasuo Ohgaki : >=20 > Hi Tony, >=20 > On Wed, Dec 7, 2016 at 7:17 PM, Tony Marston > wrote: >> "Yasuo Ohgaki" wrote in message >> = news:CAGa2bXYaX05JbJAvyxfSJyy6xiA+4u14NPFGYwScL4aoOFQGhw@mail.gmail.com...= >>>=20 >>>=20 >>> Hi Marco, >>>=20 >>> Thank you for explaining the reason why! >>>=20 >>> On Mon, Dec 5, 2016 at 11:12 AM, Marco Pivetta = wrote: >>>>=20 >>>> I voted "no" because I don't see any advantage over using a custom >>>> session >>>> save handler, besides adding more API that partially covers custom >>>> session >>>> save handlers. >>>=20 >>>=20 >>> You mean current OO custom save handler, I suppose. >>>=20 >>> Firstly, current OO custom save handler design (use of previously = used >>> internal save handler as its base class) is not good. Overriding >>> open()/close()/etc are useless, moreover harmful. Number of bugs >>> proved it is not good. >>=20 >>=20 >> I have been using session_set_save_handler() since 2002 to store all = session >> data in a database, and I have never encountered any problems. Why is = it >> "not good"? What bugs are there? >=20 > It works if it is used correctly. However, we've got number of bug > reports for abuse/misuse cases. Refer to bugs.php.net = for details. >=20 >>=20 >> I do not see the point in this RFC. >=20 > Did you read the RFC? > It enables to write serializer by PHP script, clean and simple. It > cannot be done by save handler. We can just directly read from $_SESSION (in write) and use = session_encode() (for returning on read()) as a workaround. It isn't the cleanest way, but it works. I appreciate a cleaner way, but it really should (see the last mail) = cover everything, including the need to store to different locations. > Besides, the reason why we don't have user defined serializer is > "register_globals", the reason why we have problematic base class for > OO API save handler is "register_globals". We should get rid of > obsolete features at some point also. Could you please that explain further? Also cleaning up obsolete features would be nice, rather sooner than = later. Bob > Regards, >=20 > -- > Yasuo Ohgaki > yohgaki@ohgaki.net >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php = --Apple-Mail=_4C26228A-C5FF-4B26-B70D-87C839341B5C--