Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73175 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38315 invoked from network); 15 Mar 2014 05:10:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2014 05:10:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.160.171 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.160.171 mail-yk0-f171.google.com Received: from [209.85.160.171] ([209.85.160.171:48125] helo=mail-yk0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/00-36553-2B0E3235 for ; Sat, 15 Mar 2014 00:10:12 -0500 Received: by mail-yk0-f171.google.com with SMTP id q9so9171539ykb.2 for ; Fri, 14 Mar 2014 22:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hhMvb7Nlba/Nx9HbJaYeyfqjbY/kEanie09ScjqJ+zU=; b=On/GVdoyTCAjHZBh82VGtkD7iZevhs6wm1J6eKkEtMe+su22qbh4tPGyRZUt+FRkWO j8gvsg+z0TyELrgItL74oqzGhJTLfbkc9mPc3M6Uuxc2xRihfWmGGEGR3bWfNNbHuovK obIBid83aFiQe/at4sOYwwxoFbd4bDaHg9wac= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=hhMvb7Nlba/Nx9HbJaYeyfqjbY/kEanie09ScjqJ+zU=; b=WOKDLvjMz1b7ZK+FNcKIad2Uc+9JCX81PjYmeK0pEzocF0W/ELSsfCnmgDiu348uMD +UUCwjfkAJGg31R95cEVzwCs1drYvii9DBUs4bg47ZTk6mN1U0WhztSy6fYk0Ed5XE76 AstiIPOKTCUM0vyW29hN+ec5+h5b0Nxo8Wi+1U2UTVENEy+RoHXC12LcAAyrOiVzgRqq 4KsOiCKJa5EPZQUPIl8WN1T05SjpLS/Zb27nRYWikKWLNTYmwrOODzto7vLiOrvC1p5Y o3Wt/84VhnwrWKZ2xiia66xaTzhwzghUDcMHUZ4fbsL+zY+897Xdpsv+cPcuNjS397cY ovjg== X-Gm-Message-State: ALoCoQlgDuJNa3gv0JI2oJNt9/NOT27eOfPtcbntFX0VyHEsbo/G2yKDiWVw5Bl0KuNXG+mqsMPn MIME-Version: 1.0 X-Received: by 10.236.142.48 with SMTP id h36mr16250884yhj.49.1394860207967; Fri, 14 Mar 2014 22:10:07 -0700 (PDT) Received: by 10.170.188.139 with HTTP; Fri, 14 Mar 2014 22:10:07 -0700 (PDT) In-Reply-To: References: Date: Sat, 15 Mar 2014 07:10:07 +0200 Message-ID: To: Yasuo Ohgaki Cc: Patrick Schaaf , internals , Pierre Joye Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Revert session_serializer_name(), session_gc() From: narf@devilix.net (Andrey Andreev) Hi, On Sat, Mar 15, 2014 at 6:36 AM, Yasuo Ohgaki wrote: > 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. session_abort(), session_reset() are just two functions that somebody asked about in 2002 via bugs.php.net and nobody responded (11 years without a single comment) right up until you just assumed it's a good idea and commited it. If it was "missing API", surely at least 1 user per year would've requested it. ;) I understand that you see them as small, trivial additions, but being a part of sessions automatically makes them very important and as such, they should be evaluated collectively, not by a single person. > 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. "write short circuit" as I understand it, is an exact copy of the 'lazy_write' option. This will be addressed in the previously mentioned RFC that I'll post later today. Cheers, Andrey.