Correct example. Fix #52764

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@302984 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2010-09-01 22:59:25 +00:00
parent 9412bf3cd4
commit 0334b04ba3

View file

@ -213,7 +213,7 @@ if (!$stat) {
* We want the access time to be 1 week
* before the current access time.
*/
$atime = $stat['atime'] + 604800;
$atime = strtotime('-1 week', $stat['atime']);
/* Touch the file */
if (!touch('some_file.txt', time(), $atime)) {