php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23432 PHP using mtime instead of atime to clean session files
Submitted: 2003-04-30 17:35 UTC Modified: 2004-02-09 12:16 UTC
From: polone at townnews dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.2RC2 OS: N/A
Private report: No CVE-ID: None
 [2003-04-30 17:35 UTC] polone at townnews dot com
In the document:

http://www.php.net/manual/en/ref.session.php

The documentation says that a file system supporting atime is needed - however, mod_files.c appears to be using mtime. May confuse administrators that mount file systems with noatime.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-07 05:53 UTC] nlopess@php.net
atime is used to keep track of last access to a file. If PHP can't determine the last access, how will it determine if it's garbage or not?...
 [2004-02-09 10:59 UTC] nlopess@php.net
reclassified.
 [2004-02-09 12:16 UTC] nlopess@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

bah....

I've found in cvs logs that mtime is used instead of atime since PHP 4.2.3, because the file is always updated.
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=20857c02501414c1a63a74893cb731a7ba31b87f
Log: fix #23432
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Aug 11 20:00:03 2025 UTC