Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73139 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16433 invoked from network); 14 Mar 2014 01:30:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2014 01:30:59 -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.217.177 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.177 mail-lb0-f177.google.com Received: from [209.85.217.177] ([209.85.217.177:50572] helo=mail-lb0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/AC-47923-2DB52235 for ; Thu, 13 Mar 2014 20:30:58 -0500 Received: by mail-lb0-f177.google.com with SMTP id z11so1237154lbi.8 for ; Thu, 13 Mar 2014 18:30:55 -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=dY+sUa1nQ7xdfDyb6w1B9oVA8adJnK7kJQ8SDqzIM2M=; b=PoU8MhU8gy12m91SeBfDRTUU9vFyIVgH2b6QETxCxdD2HxolqS1nTl7xHP/SuOzCF2 8yMUhxTm+8j4cOwHsh4Rz5NucbF1MnbtzVgFv2jPVgCmfJzmmga6EvwILq+LKCGwzxkz JnCplHYynviUstV/aG+fY4kfKo/DuRp7c6uYLNToV+LJOQ/ZSt4e0GGquV4zt6bKMRP0 8QvvWxgtUd0jnYC1HrdorWUejEjrkmkBKhof79haIhgjAjsUmX8GOkG8+agaSFxT9qCw cjLhqndgmlBgnzkbubpEh20JvPd3IMQcl7f9SllcNPs3jfSId0pmz2sP4Ru9GTsn+L5O WEMQ== X-Received: by 10.112.147.67 with SMTP id ti3mr3178076lbb.14.1394760655448; Thu, 13 Mar 2014 18:30:55 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Thu, 13 Mar 2014 18:30:15 -0700 (PDT) In-Reply-To: References: Date: Fri, 14 Mar 2014 10:30:15 +0900 X-Google-Sender-Auth: vPZN7AVji2VMs0y2EZRkmOdWZ68 Message-ID: To: Andrey Andreev Cc: Pierre Joye , Patrick Schaaf , internals Content-Type: multipart/alternative; boundary=047d7b3441c46a2eab04f48705f1 Subject: Re: [PHP-DEV] Re: Revert session_serializer_name(), session_gc() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7b3441c46a2eab04f48705f1 Content-Type: text/plain; charset=UTF-8 Hi Andrey, On Fri, Mar 14, 2014 at 8:16 AM, Andrey Andreev wrote: > > I think shared lock is useful. It requires additional work to change save > > handler interface and save handler code. It's a distinct feature from > > read_only. You can get status via session_status() if you need to know > > during execution. i.e. If session is started with read_only, you'll get > > PHP_SESSION_NONE status. > > This is a bug. > A read-only session is not a non-existing session. > This is not a bug. session_start(['read_only'=>true]) is the same as session_start(); session_commit(); It's much faster because no additional API call nor write to session storage. > > I'm thinking more of something like a SessionHandler::$isReadOnly property. > > > I suppose read_only is good enough name for the feature. I appreciate > better > > name for it, if there is. > > It is a perfect name, no need to change it. > > > > > Although I would not like to propose/implement the RFC now, but I may > > implement it if RFC passes. > > Great, I'll count on that. :) I have to think about the use case if it's really useful, but I may implement shared lock if RFC passes. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7b3441c46a2eab04f48705f1--