Re: Re: Revert session_serializer_name(), session_gc()

From: Date: Thu, 13 Mar 2014 16:56:11 +0000
Subject: Re: Re: Revert session_serializer_name(), session_gc()
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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.


Thread (41 messages)

« previous php.internals (#73112) next »