Re: session_reset() and session_abort() to send errors

From: Date: Tue, 01 Apr 2014 09:20:30 +0000
Subject: Re: session_reset() and session_abort() to send errors
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi,

>> Well, I just re-checked it and does indeed just call
>> php_session_initialize(), so what's the point? Shorthand for
>> session_abort() && session_start() ?
>
>
> Yes, it's an API for it.
> It's more efficient than user land functions as it requires needless
> close and open (and initialization required to open).

I'm confused now, does it call open() or does it not?
If it doesn't - it's unsafe.
If it does - it's unclear, redundant and optimizes by silently
discarding already open resources (without properly closing them).

Either way, I like efficiency but I also see it as flawed.

Cheers,
Andrey.


Thread (15 messages)

« previous php.internals (#73498) next »