Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50894 invoked from network); 28 Mar 2014 09:17:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Mar 2014 09:17:13 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:63547] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/03-31219-81E35335 for ; Fri, 28 Mar 2014 04:17:12 -0500 Received: by mail-la0-f52.google.com with SMTP id ec20so3389813lab.25 for ; Fri, 28 Mar 2014 02:17:09 -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=oj7YbreaNouWvzAJIw2AlJ5PJrNfKUG8xEJnI6FxZcE=; b=GQxr4XgVKX4zSNH7AbQlAJCw5ABonPox+kAYtCS4c5VuGPpsSdYxpJ4k58HMmMK38n yzkm9WR/e0LZhNuA+jor0/RKnkV9TG1i0fp3vt7QwErGxm4hGsDbGV7dmtpNZQu4pu/i 4Iu1gBtRhbNG5Tw/GdXRkLOqfawGVyY49lMJvDKeOtMIywOrtozEuUZ9BhrUZnC2QmKU INs0JQvpIYr9ePcXNHThfgYZlgUH/YcgjSuAlTiyQmJM9PdoXRPrZg5x1/HgRiWZoM+m jQD5v+AVrVdGBb1Wz6mOixlVHL9qUGgAlLPkgXlwjmQGetpGTILE9VOU7ZImkmIToOnE uM+w== X-Received: by 10.152.116.43 with SMTP id jt11mr84636lab.41.1395998229406; Fri, 28 Mar 2014 02:17:09 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Fri, 28 Mar 2014 02:16:29 -0700 (PDT) In-Reply-To: References: <010e01cf4788$05f3c5a0$11db50e0$@devtemple.com> <01c801cf47c0$59acbf20$0d063d60$@devtemple.com> Date: Fri, 28 Mar 2014 18:16:29 +0900 X-Google-Sender-Auth: 4Zk_auq1Lw1oUr7145xbTBp7daY Message-ID: To: Andrey Andreev Cc: Julien Pauli , Bill Salak , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c36568922e3104f5a72a5d Subject: Re: [PHP-DEV] [RFC] session_start(), read_only, lazy_write; Take 2 From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c36568922e3104f5a72a5d Content-Type: text/plain; charset=UTF-8 Hi Andrey, On Fri, Mar 28, 2014 at 6:09 PM, Andrey Andreev wrote: > Hi, > > On Fri, Mar 28, 2014 at 9:07 AM, Yasuo Ohgaki wrote: > > Hi Andrey, > > > > On Wed, Mar 26, 2014 at 8:15 PM, Andrey Andreev > wrote: > >> > >> Btw, another argument in merging updateTimestamp() into write() is > >> that userland implementations of it up until now have only been > >> possible by altering write(), so at least some users should be more > >> familiar with that approach. > > > > > > Component only does its jobs with good implementation. > > Session module consists of session manager, session save handler and > session > > serializer. > > > > Session manager should manage how it works. > > Session save handler should save/retrieve session data only. > > Session serializer should serialize/unserialize data only. > > > > It breaks this design with your suggestion. > > So letting save handler do the manager's job is not good. IMO. > > I don't understand how that's breaking any kind of design. Could you > elaborate? > Manager should manage how session behaves, not save handlers. It's basic principle of modular design. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c36568922e3104f5a72a5d--