Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73278 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9227 invoked from network); 18 Mar 2014 23:05:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2014 23:05:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.181 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.181 mail-lb0-f181.google.com Received: from [209.85.217.181] ([209.85.217.181:52926] helo=mail-lb0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/D5-16983-C21D8235 for ; Tue, 18 Mar 2014 18:05:17 -0500 Received: by mail-lb0-f181.google.com with SMTP id c11so5357797lbj.12 for ; Tue, 18 Mar 2014 16:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=oAp4IckMaeFo5FM/JqaY4qKe+1cfMAXY3MEbKa4q2mM=; b=lhf5FQTx/G88Hvmbua6Wv85S+OsW2ltOqRvYQOc1iRKpdWLzjmFwoXhWopHMPtYC4l eBPJlC8MJQI5kxx2I47XF/x2+SAYlo0WL9GlKXUk9yaXMKdSWOCPgcsBhgM75UrBTs+1 te5vBo1cknVmBCSu6vpD+RgWtATghKY68k3XVYci1wi/ZdoiP6+2pSIuJ5hdV3KUJxrI f9GVYTd+zPhGirg2DMK0stK+fNuTWRvY3JR7R68WnNt6LrTR8jODcTZI62XiTWQ3+UAi NNTmhPv1pMAtRTGIuUnczzrqCLOs4G2d9dT4LZrtyX/qTdBj7rvlCvCeM59h4kouRJe6 ARYA== X-Received: by 10.112.151.146 with SMTP id uq18mr7297lbb.38.1395183913195; Tue, 18 Mar 2014 16:05:13 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Tue, 18 Mar 2014 16:04:32 -0700 (PDT) In-Reply-To: References: <5324FE40.1070704@sugarcrm.com> <532603A0.8060802@sugarcrm.com> <5327DD6E.6030402@sugarcrm.com> Date: Wed, 19 Mar 2014 08:04:32 +0900 X-Google-Sender-Auth: f4W3xZeqy7FY8jfK0fsDts5hhhY Message-ID: To: Andrey Andreev Cc: Stas Malyshev , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7beb97d88ae05c04f4e99161 Subject: Re: [PHP-DEV] [RFC] Revert/extend/postpone original RFC about read_only, lazy_write sessions From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7beb97d88ae05c04f4e99161 Content-Type: text/plain; charset=UTF-8 Hi all, On Tue, Mar 18, 2014 at 7:58 PM, Andrey Andreev wrote: > Exacly why I wrote an RFC, except Yasuo already explained that current > workflows (speaking of userland handlers) are not affected and BC is > maintaned. > I found issue with object based save handlers, but it was solved without any BC. I also added createSid() method support. If both create_sid() and createSid() exists, createSid() is used. Since user does not have to user Session module defined interface, user may omit create_sid() definition. Even without createSid() or my patch, current behavior is some what confusing. I'll document them all later. > No problem. > > > > How about making it a INI option? It makes session_start() option > handling > > code > > a little simpler. It's not mandatory, though. > > +1 from me, if it is to be kept as an option. > I'm about to modify patch to make it INI. No objections for this? > > > I found issue with object based user save handler. Unlike procedural user > > save handlers, > > object based user save handler uses previously used save handler as it's > > base class (some what) > > Isn't that the whole point of it, that you can overload only specific > parts of the default one? > It's solved. I should have try to prevent defining bogus handlers. i.e. Existing C written save handlers do not support new API and object based save handler try to call it if user hasn't define method for these. > > > I think we are better to have another SessionHandler object that support > new > > APIs. > > We can handle create_sid() method rename with new object also. We may > keep > > current implementation undocumented and may document it new one > > (createSid()) only. > > I will name it "SessionUpdateTimestampHandler". If anyone has > suggestions, > > I would appreciate it. > > I object, although it should've been called SessionFilesHandler in the > first place, that way we could also have SessionMemcacheHandler, > SessionWhateverHandler - way nicer than it currently is, but again - > not the point of this discussion. > I removed new object. It's not needed anymore, since I prevented bogus methods registration. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7beb97d88ae05c04f4e99161--