php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26527 Either GC code is wrong or GC documentation is wrong
Submitted: 2003-12-04 15:33 UTC Modified: 2003-12-04 19:25 UTC
From: jneil at myersinternet dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jneil at myersinternet dot com
New email:
PHP Version: OS:

 

 [2003-12-04 15:33 UTC] jneil at myersinternet dot com
Description:
------------
Both the code documentation in mod_files.c (on line 207) and the PHP manual indicate that the garbage cleanup should take place based on a given session file's last access time.  However, the element from "struct stat" being used in mod_files.c on line 209 is sbuf.st_mtime (the last modification time) instead of sbuf.st_atime.

Either the code is incorrect or the documentation is incorrect.  If we can get this synced up properly, then those of us trying to debug session timeout issues will have a much easier time deciding which parameters are governing session timeouts.  The coding change may have been to fix problems on a particular platform but the result has been to make the documentation misleading.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-04 19:25 UTC] sniper@php.net
From CVS log for mod_files.c:

revision 1.76
date: 2002/08/17 20:32:26;  author: zeev;  state: Exp;  lines: +2 -2
Use mtime instead of atime, as we always update the session file anyway.

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Mar 03 05:00:01 2026 UTC