php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48925 openssl_digest_file
Submitted: 2009-07-15 08:53 UTC Modified: 2021-08-30 15:43 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: misc at atomas dot com Assigned: cmb (profile)
Status: Wont fix Package: OpenSSL related
PHP Version: 5.3.0 OS: any
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: misc at atomas dot com
New email:
PHP Version: OS:

 

 [2009-07-15 08:53 UTC] misc at atomas dot com
Description:
------------
md5($string) has md5_file($filename)
would it be possible to have
openssl_digest_file($filename, $method) ?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 15:24 UTC] jani@php.net
-Package: Feature/Change Request +Package: OpenSSL related
 [2021-08-30 15:43 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-08-30 15:43 UTC] cmb@php.net
> would it be possible to have
> openssl_digest_file($filename, $method) ?

Sure:

<?php
function openssl_digest_file($filename, $method) {
    return openssl_digest(file_get_contents($filename), $method);
}
?>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 09:01:29 2025 UTC