php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52764 should be "after" not "before"
Submitted: 2010-09-01 21:25 UTC Modified: 2010-09-02 01:02 UTC
From: thomas at haeber dot de Assigned: rquadling (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: -
Private report: No CVE-ID: None
 [2010-09-01 21:25 UTC] thomas at haeber dot de
Description:
------------
Currently it says:

    /*
     * We want the access time to be 1 week 
     * before the current access time.
     */

But 'cause of
$atime = $stat['atime'] + 604800;
It's not "before" but "after" the current acces time.

This means, change it to:

    /*
     * We want the access time to be 1 week 
     * after the current access time.
     */

The german translation has the same problem.

Expected result:
----------------
    /*
     * We want the access time to be 1 week 
     * after the current access time.
     */

Actual result:
--------------
    /*
     * We want the access time to be 1 week 
     * before the current access time.
     */

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-01 21:27 UTC] thomas at haeber dot de
Doc problem in 2nd example of http://de3.php.net/manual/en/function.stat.php
 [2010-09-02 00:59 UTC] rquadling@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=302984
Log: Correct example. Fix #52764
 [2010-09-02 01:02 UTC] rquadling@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rquadling
 [2010-09-02 01:02 UTC] rquadling@php.net
This bug has been fixed in SVN.

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.
 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=0334b04ba3d5362898086f6c6fe6a86ce64f8604
Log: Correct example. Fix #52764
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 18:00:02 2026 UTC