php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44374 MD5_file HASH problem
Submitted: 2008-03-08 14:20 UTC Modified: 2008-07-11 21:43 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: palo654 at hotmail dot com Assigned:
Status: Wont fix Package: *Encryption and hash functions
PHP Version: 4.4.8 OS: Linux Fedora
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: palo654 at hotmail dot com
New email:
PHP Version: OS:

 

 [2008-03-08 14:20 UTC] palo654 at hotmail dot com
Description:
------------
I've noticed a really confusing fact.
MD5_file and shell md5sum gives different checksums in some cases.

I've written a complete file integrity check in php.
O was using md5sum from shell to calcullate md5 checksums. After switching to md5_file i've got allerts in some files.
So I made some test, and found, that in some cases md5sum and md5_file gives different output !!!
on my /usr/lib directory I've got 6 differences.


Reproduce code:
---------------
shell_exec("/usr/bin/md5sum $currentfile");
md5_file($currentfile);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-11 21:43 UTC] jani@php.net
We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6
ready.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Dec 05 22:01:23 2020 UTC