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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
6 - 3 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC