Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73174 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34966 invoked from network); 15 Mar 2014 04:36:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2014 04:36:49 -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.45 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.45 mail-la0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:58582] helo=mail-la0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/23-12876-0E8D3235 for ; Fri, 14 Mar 2014 23:36:49 -0500 Received: by mail-la0-f45.google.com with SMTP id hr17so2368391lab.32 for ; Fri, 14 Mar 2014 21:36:45 -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=haPSHUdpU+2M3GGnmwClSRwB+uICcBCdftyBHZqr7A8=; b=bSaGLognO+RmUIMP82HLUfVgSXDprv9wMaAl2JiTb6iTbf7Atd7xOK8lDxLdJSVjyK y+Dl2TxENW6aez03YtIPD+3wKmUBGovlSzwqsI8xOtyus5l6m2nkC/uezmjAXhbqhIDX 6vUM1fHz6i/VWELjub8w/XMdw9jLbO9g4uhFRqqeNZlFKZmdk0ymmQ5W5cI6oFRH0MtS q7KI2K7TjcIXDibyD92zE+qyO80VWATwM72rWEgoh6bs3uNU0UtRpSSyCnlctdE/nets RN1QPsSWNdYYtt9z8mIb3lyf+0nMl1mZzshrpA8SjzN5VeJkxxLGz4y7rCFSKDl4Wcqo w7SQ== X-Received: by 10.112.151.146 with SMTP id uq18mr141969lbb.38.1394858205227; Fri, 14 Mar 2014 21:36:45 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Fri, 14 Mar 2014 21:36:05 -0700 (PDT) In-Reply-To: References: Date: Sat, 15 Mar 2014 13:36:05 +0900 X-Google-Sender-Auth: Y2OPpvYtmPG6BWYqqHKrq53ZqfQ Message-ID: To: Andrey Andreev Cc: Patrick Schaaf , internals , Pierre Joye Content-Type: multipart/alternative; boundary=047d7beb97d8d5afa404f49dbb97 Subject: Re: [PHP-DEV] Re: Revert session_serializer_name(), session_gc() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7beb97d8d5afa404f49dbb97 Content-Type: text/plain; charset=UTF-8 Hi all, On Sat, Mar 15, 2014 at 1:15 PM, Yasuo Ohgaki wrote: > >> Now back to the main topic: >> >> Please exclude session_serializer_name(), session_gc(), >> session_reset(), session_abort() and the "session write short-circuit" >> from the 5.6 branch. >> > > I removed session_serializer_name() and session_gc() > (Although session_gc() is mandatory API, IMO) > I like the idea removing INI modifying function in the future release. > > I don't understand reason why you insist removal of session_reset() > and session_abort(). They are just missing API for session module, > like session_gc(). > > There should be API (i.e. function/method or parameters) for distinct > operations that user may use. > > I may agree if you could provide the reason why there should not be > these APIs. > I thought it might be better to explain what new functions do. session_gc() executes GC without tweaking INIs. session_abort() aborts session without writing $_SESSION. There is no way achieve w/o it. session_reset() re-reads session and re-initializes $_SESSION. There is no way achieve w/o it. (It could be done with session_abort(), though) "write short circuit" omits "write" when $_SESSION hasn't change. There is no point calling write API and writing to storage for the same data. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7beb97d8d5afa404f49dbb97--