Doc #66159 [NEW]: fileatime() only returns file creation date, not file accessed.

From: Date: Sat, 23 Nov 2013 15:21:46 +0000
Subject: Doc #66159 [NEW]: fileatime() only returns file creation date, not file accessed.
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10633@lists.php.net to get a copy of this message
From: webzuru at yahoo dot com Operating system: Windows 7 PHP version: Irrelevant Package: Filesystem function related Bug Type: Documentation Problem Bug description:fileatime() only returns file creation date, not file accessed. Description: ------------ fileatime() function is supposed to return 'last access time of the given file' however, in windows that is not the case. It only returns the date when the file was created. This may be related to windows file permission issue, which should be worth mentioning in the documentation. Test script: --------------- <?php /* * this only returns the date the file was created. */ var_dump(date('d', fileatime('foo.txt'))); //string '13' (length=2) Expected result: ---------------- I expect to see date in which the file was last accessed or modified. Actual result: -------------- 21 -- Edit bug report at https://bugs.php.net/bug.php?id=66159&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66159&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66159&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66159&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66159&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66159&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66159&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66159&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66159&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66159&r=support Expected behavior: https://bugs.php.net/fix.php?id=66159&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66159&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66159&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66159&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66159&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66159&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66159&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66159&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66159&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66159&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66159&r=mysqlcfg

« previous php.doc.bugs (#10633) next »