Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78797 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5239 invoked from network); 6 Nov 2014 08:56:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2014 08:56:24 -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.177 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.223.177 mail-ie0-f177.google.com Received: from [209.85.223.177] ([209.85.223.177:40954] helo=mail-ie0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/0E-28384-7B73B545 for ; Thu, 06 Nov 2014 03:56:23 -0500 Received: by mail-ie0-f177.google.com with SMTP id tp5so2514126ieb.22 for ; Thu, 06 Nov 2014 00:56:19 -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=r+pZ0GYbM63HIYVSsJs8J0w4UA3VI/Xl7K6imK4gFZ4=; b=bsAEZna2WBNdZ0Wtduk1WQmH/Voe/rvHImvwh1fl+LM1+0IFjuIMd4T5FGVza1e2ay EGzbNckrpPSi2bdkuH9In+eTmDHwCdsutfmmK3WLxF9b9S4LQe+saIOFCKDRHICGPbOF 5zW0G+krZdKM24Ii3261X/VE6MKc8oh9+yR90F1EbchbUOaHb4qUQmCcE+mcHFwQYH2K 1gLWZ9nuFqVR9POS2IBtEI7bzO1JfOk8+mw/MgD5wbezg5OaiQNYcYg785c49Oa0e+TV jVzZeFkgK7VA3MuKt98dxq0KHxWt2q0ZBSmgwJkVoJz7MjYUEu5fLAtgG8wvbj7I43Yw aobA== X-Received: by 10.50.79.166 with SMTP id k6mr37946208igx.0.1415264179717; Thu, 06 Nov 2014 00:56:19 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.107.132.216 with HTTP; Thu, 6 Nov 2014 00:55:39 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Nov 2014 17:55:39 +0900 X-Google-Sender-Auth: XpL1sChucZKHeg4MIGkT6JrIoCk Message-ID: To: Andrey Andreev Cc: Damian Wadley , PHP internals Content-Type: multipart/alternative; boundary=089e013a114eb20dc405072cdee0 Subject: Re: [PHP-DEV] Lazy writing in the session, session-lock-ini, and bug #68331 From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e013a114eb20dc405072cdee0 Content-Type: text/plain; charset=UTF-8 Hi Andrey, The problem was "there was partial patch, while patch that overwrite it was not merged". I was confused. Offensive patch is removed for now already and this issue is closed. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net On Thu, Nov 6, 2014 at 5:42 PM, Andrey Andreev wrote: > Hi, > > On Thu, Nov 6, 2014 at 4:02 AM, Yasuo Ohgaki wrote: > > HI all, > > > > On Thu, Nov 6, 2014 at 6:30 AM, Yasuo Ohgaki wrote: > > > >> On Wed, Nov 5, 2014 at 10:54 AM, Damian Wadley > wrote: > >> > >>> Apparently this caused > >>> problems for some people as they made 68331 a few days ago. > >>> > >> > >> Just a quick note for this. The user would like to access session > >> data(session handler) > >> regardless of data modification. I suppose it could be solved if session > >> has user space > >> "update" handler as I suggested originally. > >> > >> Alternatively, session_write_close()/session_commit() may be changed, so > >> that it > >> is called unconditionally during shutdown. I have to read the code to be > >> sure if this is possible. > >> > >> BTW, anyone know the reason why the user need to call > >> session_write_close()/session_commit() > >> unconditionally? Accounting, perhaps? > >> > > > > The issue user has reported could be solved easily by calling write API > > during shutdown, IIRC. > > An explicit flag for this might be needed. > > There already is such explicit flag in PHP 5.4's OOP version of > session_set_save_handler(). > The linked test script in the bug report also explicitly registers > session_write_close() as a shutdown function. > > The problem isn't that there's no call, it's that _the call itself is > ignored_. > > > Cheers, > Andrey. > --089e013a114eb20dc405072cdee0--