Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73069 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97358 invoked from network); 11 Mar 2014 22:38:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2014 22:38:15 -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.217.174 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.174 mail-lb0-f174.google.com Received: from [209.85.217.174] ([209.85.217.174:57710] helo=mail-lb0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/51-22021-6509F135 for ; Tue, 11 Mar 2014 17:38:15 -0500 Received: by mail-lb0-f174.google.com with SMTP id u14so6095392lbd.33 for ; Tue, 11 Mar 2014 15:38:11 -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=mCTzUKoVymBIhMrGq7EbebOqFYkd1047cqjK1JF+cb8=; b=R4e9WI7bFQBgXMk6OoIxE7VTABRBfPvPku3lASm3pTXHAHs/xPLj/XH/eJELjMD30s Y2m0pZt87JQ6kXfHO3eUrIRN/lxNPMzPSqSd0W86scgUWHay0o+95a7PeaLe4hrbkxC3 HM5xlQy+dkV+ns4PEGpqfCJuLElkHN3iVG7Bxr8+0c+N/Ouik01ld2uMtFJSYTHpBIpY ROu3Tjj+WYL64ldx7CwDPkwe6dHlV48mSgKDlgdTSMtvKE378Px+5QsBjdFdWWYib4xH M8La1olyYz/S8yaA6fy3GPslyxrhyBDJ3kHtljlBGvBOtKXGingugvjRf6Eb+62uUTRy 4Yrg== X-Received: by 10.112.118.198 with SMTP id ko6mr27583614lbb.6.1394577491516; Tue, 11 Mar 2014 15:38:11 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Tue, 11 Mar 2014 15:37:31 -0700 (PDT) In-Reply-To: References: Date: Wed, 12 Mar 2014 07:37:31 +0900 X-Google-Sender-Auth: wKOkZwNle7TSrfKOmeSzEbbyYeo Message-ID: To: Andrey Andreev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7bfd022afe624704f45c5f97 Subject: Re: Revert session_serializer_name(), session_gc() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7bfd022afe624704f45c5f97 Content-Type: text/plain; charset=UTF-8 Hi Andrey, On Tue, Mar 11, 2014 at 10:37 PM, Andrey Andreev wrote: > I just saw this in the 5.6-alpha1 changelog: > > - Implemented Request #54649 (Create session_serializer_name()). (Yasuo) > ... > - Implemented Request #11100 (session_gc() function). (Yasuo) > > > I didn't find an RFC and I don't know a way to search for a discussion > on internals (Google doesn't find one). > > session_serializer_name(): https://bugs.php.net/bug.php?id=54649 > > I don't think that this should've been implemented, especially with > the reasoning from the feature request ... The same could be applied > to all session ini options and especially now since session_start() > accepts them, it's useless IMO. > > session_gc() was added in a similar fashion: > https://bugs.php.net/bug.php?id=11100 > > There's already a comment about how the same thing can be achieved by > overloading SessionHandler::gc(), but a user could also just alter > session.gc_divisor, session.gc_probability to ensure that the garbage > collector is started. > Users want to have contorl *when* gc is performed rather than luck. This is reasonable. IMO. > And while session_serializer_name() is just redundant, session_gc() > could cause performance issues. > There is session_module_name(), why not session_serializer_name()? Many 3rd party save handler implements many serializer. session_gc() is nothing to do with performance. Users may abuse. The same argument applies to gc probability. I'd strongly suggest that these 2 functions should be removed before > PHP 5.6 is officially released. > These are simple additional APIs. If your argument applies, there should be number of new RFCs. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7bfd022afe624704f45c5f97--