php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51004 Incorrect subtext
Submitted: 2010-02-10 21:51 UTC Modified: 2010-02-10 22:36 UTC
From: cory at opendns dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2010-02-10 21:51 UTC] cory at opendns dot com
Description:
------------
The documentation incorrectly describes sha1_file() as generating a sha1 
of a file instead of the filename.

Reproduce code:
---------------
---
From manual page: function.sha1-file#Description
---

sha1_file

(PHP 4 >= 4.3.0, PHP 5)

sha1_file ? Calculate the sha1 hash of a file

---

The above description is incorrect, yet the description itself correctly describes this function: 

"Calculates the sha1 hash of filename using the ? US Secure Hash Algorithm 1, and returns that hash."



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-10 22:36 UTC] svn@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=294861
Log: Fixed #51004: Inaccurate description of sha1_file().
 [2010-02-10 22:36 UTC] degeberg@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.


 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of degeberg
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=f77f7960cfbdd808c89dae6d8cf5f50d1e5b7db5
Log: Fixed #51004: Inaccurate description of sha1_file().
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC