#23432 [Opn->Csd]: PHP using mtime instead of atime to clean session files
| From: | nlopess@php.net | Date: | Mon, 09 Feb 2004 17:16:14 +0000 |
| Subject: | #23432 [Opn->Csd]: PHP using mtime instead of atime to clean session files | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969358866@lists.php.net to get a copy of this message | ||
ID: 23432
Updated by: nlopess@php.net
Reported By: polone at townnews dot com
-Status: Open
+Status: Closed
-Bug Type: Session related
+Bug Type: Documentation problem
Operating System: N/A
PHP Version: 4.3.2RC2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-02-09 10:59:47] nlopess@php.net
reclassified.
------------------------------------------------------------------------
[2004-02-07 05:53:08] 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?...
------------------------------------------------------------------------
[2003-04-30 17:35:03] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23432&edit=1