Yasuo Ohgaki wrote:
>
> Ulf Wendel wrote:
>
> > Hi,
> >
> > being not a php source code guru I need some help on understanding the
> > source. Why does the session module run the garbage collection from the
> > PHP_RINIT_FUNCTION() means from php_session_start()? Does the user
> > notice a delay caused by PHP_RSHUTDOWN_FUNCTION()? If not what's the
> > reason not placing the GC there.
>
> I think Sascha wants to delete garbages before reading data
> and I can understand the reasons.
I asked Sascha on IRC #php.de and his answer was "Good question. It
might have todo with the lifetime of PS(mod_data)." If so, it's clear.
If not, there's no reason on running GC at a time where the user
definetly notices the (often negliable) delay. But well, there's a lot
of "if's" and I just wanna know. Someone with detailed knowledge of the
internals should be able to answer my questions:
- is a PHP_RSHUTDOWN_FUNCTION() delay "visible" to the user?
- what about the lifetime of PS(mod_data),
can one still access it from within the PHP_RSHUTDOWN_FUNCTION()?
> Anyway, with user defined handlers, you can gc at shutdown w/o
> changing PHP C source. Create empty gc function and use
If it's possible to run GC on shutdown there's no reason to delay the
delivery of php script result by running GC on session start.
Ulf
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]