Req #48925 [Opn->Wfx]: openssl_digest_file

From: Date: Mon, 30 Aug 2021 15:43:12 +0000
Subject: Req #48925 [Opn->Wfx]: openssl_digest_file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236183@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=48925&edit=1

 ID:                 48925
 Updated by:         cmb@php.net
 Reported by:        misc at atomas dot com
 Summary:            openssl_digest_file
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
 Package:            OpenSSL related
 Operating System:   any
 PHP Version:        5.3.0
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

> 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);
}
?>


Previous Comments:
------------------------------------------------------------------------
[2009-07-15 08:53:02] misc at atomas dot com

Description:
------------
md5($string) has md5_file($filename)
would it be possible to have
openssl_digest_file($filename, $method) ?



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=48925&edit=1


Thread (2 messages)

« previous php.bugs (#236183) next »