Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73112 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57843 invoked from network); 13 Mar 2014 16:56:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2014 16:56:15 -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.169 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.160.169 mail-yk0-f169.google.com Received: from [209.85.160.169] ([209.85.160.169:38589] helo=mail-yk0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/51-47923-E23E1235 for ; Thu, 13 Mar 2014 11:56:14 -0500 Received: by mail-yk0-f169.google.com with SMTP id 142so3413905ykq.0 for ; Thu, 13 Mar 2014 09:56:12 -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=DObux6w4EjzvhzZkOZa5u7e+JZfGXWiFws6aEQG8zTI=; b=Vj1JJweadwZxLLum6SH11eESaxgB8ndO3g1DKb9xUp1VQWK/Z2PtQci+QEA6VoXssY SCBK6NGl2xot608JWIlC+/74TDV9sWhvoi9VrH65RgfJWh09znKtTVKEtDafjrYAolpX NXoed6MNhrWnrqlQCsJYwVnVvb9inegHINqH4= 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=DObux6w4EjzvhzZkOZa5u7e+JZfGXWiFws6aEQG8zTI=; b=YiIVGC9Urji8vM223BWEwiTMji1OduXDprwZ/32eEZ0fgHtblv7SFFJCfJhPKy6yBf 6zR/5wG+b48xYXe7EuWARKR+TD9Ntz3jFOXmpPO5s5SQAe8nB4fKE76o6GOzNoxXn7Zn a7aVK5K5R+o1pPwxcSSqKhsUnB8mmQ5sJ0fkZ314t/KcWewWv2L92kkfYizC0BN7oT4u ArxfgcYghhAhDI/ff2Wchn5WtA18rJ3e3kz4BjahfSbrTSBmnOXck8SVR5sUFpXW926e 2sMVFnXKP12IwTtHJlGx/BA+zhkMsWQWWC8wN7rg7rcepAhBBvMtcW+jxiwh5FUd4gnT 6WjQ== X-Gm-Message-State: ALoCoQm1ioD31IKV7vqopb4JyHC+OHCwffSxfAJ9vCMY7357RPj0UY35HQpdbjfZvudZcp/+pDY6 MIME-Version: 1.0 X-Received: by 10.236.122.99 with SMTP id s63mr3857450yhh.19.1394729771830; Thu, 13 Mar 2014 09:56:11 -0700 (PDT) Received: by 10.170.188.139 with HTTP; Thu, 13 Mar 2014 09:56:11 -0700 (PDT) In-Reply-To: References: Date: Thu, 13 Mar 2014 18:56:11 +0200 Message-ID: To: Pierre Joye Cc: Yasuo Ohgaki , Patrick Schaaf , internals 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 again, Another 2 items that didn't go through the RFC process or any discussion: - Implemented Request #20421 (session_abort() and session_reset() function). (Yasuo) https://bugs.php.net/bug.php?id=20421 Does this change mtime of the session? I also have other (rather philosophical) arguments against this, but I don't want to get deeper into it now ... it should just be reverted together with session_serializer_name(), session_gc() on the basis of no discussion at all. - Implemented Request #17860 (Session write short circuit). (Yasuo) https://bugs.php.net/bug.php?id=17860 The problem with that is that there's no API exposed for custom save handlers to decide when to only update mtime or the whole session. I think the question was exactly about that, actually. It is also not clear how is that implemented and for which of the available session handlers ... is it all of them? Then later (note that it *already is implemented*), it was voted as part of this RFC, which made it optional: https://wiki.php.net/rfc/session-lock-ini This RFC is broken to begin with ... what ended up as accepted from this RFC was actually very far from the main intention behind it (and it silently accepted passing ini options to session_start() with no explicit voting for that - just saying, otherwise I like that feature). Also, there's no description for "read_only" except the obvious - that it only reads. It should at least mention that a shared lock can be used for that case. IMO, if this feature had gone through proper discussion instead of just presenting a yes/no option as part of another change, we'd end up with a different solution. Actually, I'd like to ask if it's possible for an RFC to override a decision taken from a previous one? And can it be done quick? Or if not - can that be postponed for 5.7? The lazy_write option is nice, but it's not optimal and it would be embarassing if it makes it into 5.6 only to be later reversed in favor of a better solution. What I'm thinking of is a session_is_changed() function and "lazy_write" at all times (there's no reason for that to be optional). Regards, Andrey.