php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #46991 stat() "blocks" is in 512B units, not "blksize" units
Submitted: 2009-01-02 10:00 UTC Modified: 2009-11-20 11:04 UTC
From: chead at telus dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chead at telus dot net
New email:
PHP Version: OS:

 

 [2009-01-02 10:00 UTC] chead at telus dot net
Description:
------------
The stat() functions "blocks" element is the number of 512-byte blocks used by the file, NOT the number of filesystem blocks. The "blksize" element contains the size of a filesystem block. The number 512 should appear somewhere on that documentation page, and NOT just as a user comment - right in the table of elements.

Consider, for example, changing "number of blocks allocated **" to "number of 512-byte blocks allocated **"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-20 11:04 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2009-11-20 11:04 UTC] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=291063
Log: Uses 512B blocks (bug #46991)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 23:00:01 2026 UTC