Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78766 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41149 invoked from network); 6 Nov 2014 01:43:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2014 01:43:20 -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.223.179 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-ie0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:61199] helo=mail-ie0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/32-28384-632DA545 for ; Wed, 05 Nov 2014 20:43:19 -0500 Received: by mail-ie0-f179.google.com with SMTP id rl12so2053230iec.10 for ; Wed, 05 Nov 2014 17:43:16 -0800 (PST) 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=w0+CqFcmLBIDmbM7HQ6IPZNSyF/WmjZcGW0gheQVSoE=; b=t0tJd3sB7WY0cieICOgsd3n8RzblRCrkh8z8UteI4YgL64r+SKyBVZaRpBYxk1wGQ6 vT22sxpKGfj9/FZPWnfY9Sd8QMbltxS8EjfmPRg9mIAl09etGrKQZ0UT6y1cyLLPR7oy Bi5fqWYtkj4WQBh6ytvtA6BBjs4mklITdTDsvCBKpU2olgXvmdXEMcPilSWbgBqowp8C px5wwigy/mFR4fSVQt1z6U7u4p0GqcofecOXeTMWc9as1btqAK76SEEoSJCOVDz0uGWW BW1urmIUaTQWz7vu4HH4D1DOdTwQpKwldjhLcwmZYuMMN3AvKBuqnu+yPV3E10VI7n3A iVSw== X-Received: by 10.42.25.204 with SMTP id b12mr8295284icc.14.1415238195990; Wed, 05 Nov 2014 17:43:15 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.107.132.216 with HTTP; Wed, 5 Nov 2014 17:42:35 -0800 (PST) In-Reply-To: References: <424081508.1350448.1415209726279.JavaMail.zimbra@escapemg.com> <801152711.1350497.1415209768109.JavaMail.zimbra@escapemg.com> Date: Thu, 6 Nov 2014 10:42:35 +0900 X-Google-Sender-Auth: 9kEks0ELOpL8xVP1DJBfKnVDToQ Message-ID: To: Andrey Andreev Cc: Ferenc Kovacs , Mark Caudill , Yasuo Ohgaki , julien pauli , Damian Wadley , PHP Internals Content-Type: multipart/alternative; boundary=20cf303f6dfcf1d83b050726d145 Subject: Re: [PHP-DEV] Lazy writing in the session, session-lock-ini, and bug #68331 From: yohgaki@ohgaki.net (Yasuo Ohgaki) --20cf303f6dfcf1d83b050726d145 Content-Type: text/plain; charset=UTF-8 Hi Andrey, On Thu, Nov 6, 2014 at 8:23 AM, Andrey Andreev wrote: > Short-term fix for 5.6 is obviously to revert the commit. I was vocal > mostly because of principle at the time, but this issue is an example > why. > Did you? I don't think so. The reason that I didn't provide that user land "update" API is your objection. If it is included, user had control even in this case. A long-term "fix" for 5.6 would be what I've done in userland recently > - continue to call SessionHandler::write() at all times, but _inside > of it_ call touch() instead of fwrite() if there's no new data. That > way custom session handlers wouldn't be affected, but the default one > would still provide a performance boost. This is of course if we do > want to keep the feature (I do), but considering that it was voted in > a slightly different form ... I'm just being egoistic with this > suggestion. > No. Providing userland update API just like C module save handler is the way to go as I implemented at first. Besides, the method that you described will not solve the issue reported by the bug. There is no point that provides different API for C and PHP written save handlers, IMO. For PHP7 though, I definately want a redesign of the session APIs and > it's on my TODO list for when I have some spare time to work on it. > I think you have misunderstanding for session management. One example is that you don't understand nature of browser and server communication. It's _asynchronous_ by it's nature, yet you insisted _syncronous_ operation. Without this understanding, session cannot be managed correctly/precisely. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --20cf303f6dfcf1d83b050726d145--