From:             
Operating system: CentOS 5.3
PHP version:      Irrelevant
Package:          Session related
Bug Type:         Bug
Bug description:Garbage is Never Collected

Description:
------------
I'm using PHP version 5.2.6-1+lenny10.  I would upgrade or try using an SVN


snapshot if I could, but I don't have administrator privileges on the
server I'm 

using :-/.



Below is an excerpt from my php.ini file.



session.gc_probability = 1

session.gc_divisor = 1

session.gc_maxlifetime = 3600



I also have a call to session_save_path('Session Data') and 

ini_set('session.gc_maxlifetime', 3600) right before session_start() gets
called.  

These three functions get called at the top of every page before any output
is 

sent from the server.

Test script:
---------------
I executed the following script to verify that PHP has the appropriate
privileges to delete temporary session files, and it deleted the file as
expected.



<?php

  unlink('Session Data/name_of_arbitrary_session_file');

?>

Expected result:
----------------
My understanding is that, using this configuration, the garbage collector
should 

completely delete all temporary session files in the "Session Data"
directory that 

are over an hour old every time anybody goes to any page on the site.

Actual result:
--------------
I have empty temporary session files in the "Session Data" folder that are
several 

days old but have yet to be deleted.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=55048&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=55048&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=55048&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=55048&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=55048&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=55048&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=55048&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=55048&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=55048&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=55048&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=55048&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=55048&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=55048&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=55048&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=55048&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=55048&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=55048&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=55048&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=55048&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=55048&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=55048&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=55048&r=mysqlcfg

Reply via email to