Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70996 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75719 invoked from network); 3 Jan 2014 23:15:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2014 23:15:21 -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.51 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.51 mail-la0-f51.google.com Received: from [209.85.215.51] ([209.85.215.51:37914] helo=mail-la0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/50-08607-98447C25 for ; Fri, 03 Jan 2014 18:15:21 -0500 Received: by mail-la0-f51.google.com with SMTP id ec20so8433568lab.38 for ; Fri, 03 Jan 2014 15:15:18 -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=RMsMnhX9uvYhtCBPCxnz1BAPC2sBiGm2Z9aqsZKdHuA=; b=QV/ydSvJezkbtVSeMv2rqUIof2idS4djP6yjVy+5lVRgZsne08/sUTE6oT+b3wuzuk 6F31uGo41OFY3SOi4d+8qD+L3yiUv96tIvZ72x8Lr8VraU6CuvhLOsnioMurlOhOPVyK xZd8pf6TNFWE1WEgnmTChuhPADpDGMgTo0halObnlo9fJMHSDMUh5mU6GJSU6+Dm6i5O hxpPxQGgZv2XnWXFsAhms6sx34ssZnzcl0BovZW3enFdH7i/guX29PPWmmcO1roRlTRD K8UuzZBzHhunHnVC3K/QACVzuTtxNm8+DRe8g+aECkW71YaM8HNoyaE8DSKXMkU/q0XP tkCg== X-Received: by 10.152.180.66 with SMTP id dm2mr10554lac.88.1388790918462; Fri, 03 Jan 2014 15:15:18 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.6.68 with HTTP; Fri, 3 Jan 2014 15:14:38 -0800 (PST) In-Reply-To: References: <52C61F08.6020105@gmail.com> Date: Sat, 4 Jan 2014 08:14:38 +0900 X-Google-Sender-Auth: kIN3U-zzm6oHdAvnxNoJ93uXbPs Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113458965cc1b404ef191509 Subject: Re: [PHP-DEV] Re: [RFC] Introduce session.lock, session.lazy_write and session.lazy_destory From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113458965cc1b404ef191509 Content-Type: text/plain; charset=UTF-8 On Sat, Jan 4, 2014 at 8:10 AM, Yasuo Ohgaki wrote: > On Fri, Jan 3, 2014 at 11:23 AM, Rowan Collins wrote: > >> On 02/01/2014 20:46, Yasuo Ohgaki wrote: >> >>> I've added session_discard() to RFC that discards changes made to >>> session data and close session. >>> >>> Since there is session_commit(), >>> >>> http://www.php.net/manual/en/function.session-commit.php >>> >>> session_abort() may be better name for it. >>> Any comment? >>> >> >> Since session_commit() is an alias for session_write_close(), the new >> function should probably also have "close" in its name (although oddly we >> "start" a session, rather than "open" it). >> >> Both "discard" and "abort" also sound a bit like destroying the session >> itself to me, rather than just ignoring the current changes to it. >> >> Perhaps something like session_revert_close() - "revert" being a closely >> analagous action in version control systems. > > > session_revert_close() sounds reasonable if session_write_close() is main > function. > Rather than session_start(), session_open() would be better name, since > there is session_write_close(). > > IIRC, session_write_close() was considered odd name and session_commit() > is made as alias of it later. Expect-able/consistent function names may be > better as main function and document them for new release. We should be > careful not to have too many aliases, though. > > Main functions > > session_start() (or session_open()?) > session_write_close() > session_revert_close() > > Aliases > > session_open() (or session_start()?) > session_commit() > session_abort() > > Introducing session_revert_close() only seems good to me, but I don't mind > to have session_open()/session_abort() at all. Any comments? > Choosing good names is difficult ;-) > BTW, I'm not the one who named session_write_close()/session_commit(). Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113458965cc1b404ef191509--